-
-
Notifications
You must be signed in to change notification settings - Fork 3
146 lines (138 loc) · 4.21 KB
/
ci.yml
File metadata and controls
146 lines (138 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: CI
on:
push:
branches:
- '*'
tags:
- ''
jobs:
test-java-21:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up JDK 21 for test fixtures
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Compile test projects
run: |
(cd ./test/fixtures/general && mvn compile)
(cd ./test/plugin/spring/fixtures/general && mvn compile)
- name: Build Docker image for core
uses: docker/build-push-action@v5
with:
context: .
file: docker/core/Dockerfile
tags: inga-core
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: docker/java/Dockerfile
build-args: |
INGA_IMAGE=inga-core
JAVA_VERSION=21
tags: inga
- name: Build Docker image for test
uses: docker/build-push-action@v5
with:
context: .
file: .github/workflows/docker/Dockerfile
tags: test-inga
- name: Run tests
run: |
docker run test-inga -c "
ros -s fiveam -e \"
(ql:quickload :inga)
(handler-case (asdf:test-system :inga)
(error () (uiop:quit 1)))
(ql:quickload :inga/test-jvm-21)
(handler-case (asdf:test-system :inga/test-jvm-21)
(error () (uiop:quit 1)))\""
test-java-17:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up JDK 17 for test fixtures
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Compile test projects
run: |
(cd ./test/fixtures/spring-boot-realworld-example-app && ./gradlew compileJava)
(cd ./test/fixtures/spring-tutorials/guava-modules && mvn compile)
(cd ./test/fixtures/spring-tutorials/lightrun && mvn compile)
- name: Build Docker image for core
uses: docker/build-push-action@v5
with:
context: .
file: docker/core/Dockerfile
tags: inga-core
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: docker/java/Dockerfile
build-args: |
INGA_IMAGE=inga-core
JAVA_VERSION=17
tags: inga
- name: Build Docker image for test
uses: docker/build-push-action@v5
with:
context: .
file: .github/workflows/docker/Dockerfile
tags: test-inga
- name: Run tests
run: |
docker run test-inga -c "
ros -s fiveam -e \"
(ql:quickload :inga)
(ql:quickload :inga/test-jvm-17)
(handler-case (asdf:test-system :inga/test-jvm-17)
(error () (uiop:quit 1)))\""
test-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Build Docker image for core
uses: docker/build-push-action@v5
with:
context: .
file: docker/core/Dockerfile
tags: inga-core
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/typescript/Dockerfile
build-args: |
INGA_IMAGE=inga-core
tags: inga
- name: Build Docker image for test
uses: docker/build-push-action@v5
with:
context: .
file: ./.github/workflows/docker/Dockerfile
tags: test-inga
- name: Run tests
run: |
docker run test-inga -c "
ros -s fiveam -e \"
(ql:quickload :inga)
(handler-case (asdf:test-system :inga)
(error () (uiop:quit 1)))
(ql:quickload :inga/test-node)
(handler-case (asdf:test-system :inga/test-node)
(error () (uiop:quit 1)))\""