forked from xspec/xspec
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (61 loc) · 1.94 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
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
name: Test
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
env:
XSPEC_TEST_ENV: ${{ matrix.env }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java: [8, 11]
env: [saxon-10, saxon-9-9, oxygen, saxon-9-8]
exclude:
- os: windows-latest
env: saxon-9-8
- os: macos-latest
env: saxon-9-9
- os: macos-latest
env: saxon-9-8
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: zulu
- name: Install Bats for Linux
if: runner.os == 'Linux'
run: sudo npm install -g bats
- name: Run tests for *nix
if: runner.os != 'Windows'
run: >
source test/ci/install-deps.sh
&& test/ci/print-env.sh
&& test/ci/run-core-tests.sh
&& test/ci/maven-package.sh -q
&& test/ci/compile-java.sh -silent
&& test/ci/last-git-status.sh
&& test/ci/test-maven-jar.sh -silent
- name: Run tests for Windows
if: runner.os == 'Windows'
shell: cmd
run: >
call test\ci\install-deps.cmd
&& call test\ci\print-env.cmd
&& call test\ci\run-core-tests.cmd
&& call test\ci\maven-package.cmd -q
&& call test\ci\compile-java.cmd -silent
&& call test\ci\last-git-status.cmd
&& call test\ci\test-maven-jar.cmd -silent
- uses: actions/[email protected]
if: env.MAVEN_PACKAGE_VERSION != ''
with:
name: maven-package_${{ env.MAVEN_PACKAGE_VERSION }}_${{ matrix.os }}_java-${{ matrix.java }}_${{ matrix.env }}
path: target/xspec-${{ env.MAVEN_PACKAGE_VERSION }}*.*
if-no-files-found: error