generated from actions/container-action
-
Notifications
You must be signed in to change notification settings - Fork 24
53 lines (50 loc) · 1.48 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
name: Test
on: [push, pull_request]
jobs:
tests-with-token:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == 'axel-op'
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java-version: [8, 11, 16]
version: ["1.6", ""]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Compile
run: npm install && npx ncc build index.js -o dist
- uses: ./
with:
skip-commit: true
github-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ matrix.version }}
tests-without-token:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java-version: [8, 11]
version: ["1.6", ""]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Compile
run: npm install && npx ncc build index.js -o dist
- uses: ./
continue-on-error: ${{ matrix.os == 'macos-latest' }}
with:
skip-commit: true
version: ${{ matrix.version }}