-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.1 KB
/
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
name: Runs unit tests on both the generator, and the generated code
on: [push]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [ 17, 21 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: "temurin"
- name: Setup gradle
uses: gradle/actions/setup-gradle@v3
- run: "./gradlew test"
- run: "./gradlew proguard"
- run: |
shopt -s globstar
java -jar build/libs/fixie-mini.jar -d ./ -i 1 example-configs/**/*.gddl example-configs/**/*.json
- run: "cp .github/build.gradle.test build.gradle"
- run: "./gradlew test"
- run: "java -jar build/libs/fixie-mini.jar -i 2"
- uses: actions/upload-artifact@v4
if: ${{ matrix.jdk == 17 }}
with:
name: fixie-original.jar
path: build/libs/fixie-all.jar
- uses: actions/upload-artifact@v4
if: ${{ matrix.jdk == 17 }}
with:
name: fixie.jar
path: build/libs/fixie-mini.jar