-
Notifications
You must be signed in to change notification settings - Fork 20
45 lines (41 loc) · 1.23 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
41
42
43
44
45
name: test
# Run the tests when code is pushed to `master`
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Install Savant Build
run: |
mkdir -p ~/dev/savant
mkdir -p ~/.savant/plugins
cd ~/dev/savant
curl -fSL https://github.com/savant-build/savant-core/releases/download/2.0.0-RC.6/savant-2.0.0-RC.6.tar.gz > savant.tar.gz
tar -xzf savant.tar.gz
ln -s savant-2.0.0-RC.6 current
rm savant.tar.gz
cat <<EOF > ~/.savant/plugins/org.savantbuild.plugin.java.properties
17=${JAVA_HOME_17_X64}
EOF
shell: bash
- name: Run the build
run: |
export PATH=~/dev/savant/current/bin:$PATH
sb clean int
shell: bash
- name: Archive TestNG reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: testng-reports
path: build/test-reports
retention-days: 1