-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (47 loc) · 1.52 KB
/
build-config.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
name: Build and test SQRL with Maven
on:
pull_request:
branches: [ "main", "v0.5.9-release"]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
TZ: 'America/Los_Angeles'
steps:
- name: Setup Timezone
uses: szenius/set-timezone@v1.1
with:
timezoneLinux: "America/Los_Angeles"
- name: checkout
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Build SQRL
env:
DATASQRL_TOKEN: ${{ secrets.DATASQRL_TOKEN }}
run: mvn -T 1 -B -U -e clean verify
- name: Build Docker image
run: docker build -t sqrl-test ./sqrl-tools
- name: Run Docker container and execute tests
working-directory: ./sqrl-testing/sqrl-integration-tests/src/test/resources/usecases/conference
run: |
docker run -i --rm -v $PWD:/build sqrl-test test conference.sqrl conference.graphqls --snapshot snapshots-conference --tests tests-conference
continue-on-error: false
- name: Test UDF
working-directory: ./sqrl-testing/sqrl-integration-tests/src/test/resources/usecases/udf
run: |
docker run -i --rm -v $PWD:/build sqrl-test test myudf.sqrl --snapshot snapshots-myudf --tests tests-myudf
continue-on-error: false
- name: Check Docker return code
run: |
if [ $? -ne 0 ]; then
echo "Test failed."
exit 1
else
echo "Test passed."
fi