-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (62 loc) · 2.14 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:
# Trigger at every push. Action will also be visible from Pull Requests to master
push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions)
pull_request:
branches: [master]
permissions: read-all
jobs:
build:
name: Test
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
java_version: [17, 19, 21]
runs-on: ${{ matrix.os }}
steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::712023778557:role/github/GitHub-Testing-NF-Quilt
aws-region: us-east-1
- name: Setup Java ${{matrix.java_version}}
uses: actions/setup-java@v4
with:
java-version: ${{matrix.java_version}}
distribution: "temurin"
architecture: x64
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run Gradle Tests
run: make test
env:
LOG4J_DEBUG: true
- name: Archive production artifacts (Windows only)
uses: actions/upload-artifact@v4
if: ${{ always() && matrix.os == 'windows-latest' }}
with:
name: nf-quilt-test-reports-${{ matrix.os }}-${{ matrix.java_version }}
path: |
D:\a\nf-quilt\nf-quilt\plugins\nf-quilt\build\reports\
overwrite: true
- name: Archive production artifacts (Linux and MacOS)
uses: actions/upload-artifact@v4
if: ${{ always() && matrix.os != 'windows-latest' }}
with:
name: nf-quilt-test-reports-${{ matrix.os }}-${{ matrix.java_version }}
path: |
${{ github.workspace }}/plugins/nf-quilt/build/reports/
overwrite: true