-
Notifications
You must be signed in to change notification settings - Fork 1
173 lines (150 loc) · 4.89 KB
/
run-integration-test.yml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
name: Integration Test
on:
workflow_dispatch:
inputs:
rascal_version:
description: 'rascal branch/tag to checkout'
required: true
default: 'main'
typepal_version:
description: 'typepal branch/tag to checkout'
required: true
default: 'main'
rascal_core_version:
description: 'rascal-core branch/tag to checkout'
required: true
default: 'master'
jobs:
prepare-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: 'Checkout rascal'
with:
repository: 'usethesource/rascal'
ref: ${{ inputs.rascal_version }}
path: 'deps/rascal'
- uses: actions/checkout@v4
name: 'Checkout typepal'
with:
repository: 'usethesource/typepal'
ref: ${{ inputs.typepal_version }}
path: 'deps/typepal'
- uses: actions/checkout@v4
name: 'Checkout rascal-core'
with:
repository: 'usethesource/rascal-core'
ref: ${{ inputs.rascal_core_version }}
path: 'deps/rascal-core'
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
cache-dependency-path: 'deps/rascal/pom.xml'
- name: Compile rascal java
run: mvn -B clean compile package -Drascal.tutor.skip -DskipTests -Drascal.compile.skip
working-directory: deps/rascal
- name: copy rascal jar to predictable location and cleanup
run: |
rm deps/rascal/target/*-sources.jar
find deps/rascal/target -name 'rascal-*.jar' -exec mv '{}' deps/rascal/rascal.jar \;
rm -rf deps/rascal/target
- uses: actions/upload-artifact@v4
name: 'Store dependencies for the other jobs'
with:
name: deps
path: deps/
retention-days: 1
rascal:
runs-on: buildjet-4vcpu-ubuntu-2204
needs: prepare-deps
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- uses: actions/download-artifact@v4
with:
name: deps
- name: Download needed rascal-jar
run: mvn -B validate
- name: Typecheck rascal
run: |
java -jar rascal/rascal.jar Main \
--rascalVersion "|cwd:///rascal/rascal.jar|" \
--typepalVersion "|cwd:///typepal|" \
--rascalCoreVersion "|cwd:///rascal-core|" \
--repoFolder "|file:///$RUNNER_TEMP/repos|" \
--full false \
--clean \
--printWarnings \
--tests rascal
- uses: actions/upload-artifact@v4
name: Store rascal tpls
with:
name: rascal-tpls
path: $RUNNER_TEMP/repos
retention-days: 1
rascal-libs:
runs-on: buildjet-2vcpu-ubuntu-2204
needs: [rascal, prepare-deps]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- uses: actions/download-artifact@v4
with:
name: deps
- uses: actions/download-artifact@v4
with:
name: rascal-tpls
path: $RUNNER_TEMP/repos
- name: Download needed rascal-jar
run: mvn -B validate
- name: Typecheck rascal-libs
run: |
java -jar rascal/rascal.jar Main \
--rascalVersion "|cwd:///rascal/rascal.jar|" \
--typepalVersion "|cwd:///typepal|" \
--rascalCoreVersion "|cwd:///rascal-core|" \
--repoFolder "|file:///$RUNNER_TEMP/repos|" \
--full false \
--clean \
--printWarnings \
--tests 'flybytes' 'php-analysis' 'rascal-git' 'salix-core' 'drambiguity' 'salix-contrib' 'rascal-all'
rascal-core-lsp:
runs-on: buildjet-2vcpu-ubuntu-2204
needs: [rascal, prepare-deps]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- uses: actions/download-artifact@v4
with:
name: deps
- uses: actions/download-artifact@v4
with:
name: rascal-tpls
path: $RUNNER_TEMP/repos
- name: Download needed rascal-jar
run: mvn -B validate
- name: Typecheck rascal-libs
run: |
java -jar target/dependencies/rascal.jar Main \
--rascalVersion "|cwd:///rascal/rascal.jar|" \
--typepalVersion "|cwd:///typepal|" \
--rascalCoreVersion "|cwd:///rascal-core|" \
--repoFolder "|file:///$RUNNER_TEMP/repos|" \
--full false \
--clean \
--printWarnings \
--tests 'typepal' 'rascal-lsp' 'rascal-core'