132 nf quilt 10 (#133) #342
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [ubuntu-latest, macos-latest, windows-latest] | |
java_version: [11, 17, 19] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Git Checkout | |
- name: Checkout Code | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: Install Quilt3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: python -m pip install quilt3 | |
- run: which quilt3 | |
- name: Setup Java ${{matrix.java_version}} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{matrix.java_version}} | |
distribution: 'temurin' | |
architecture: x64 | |
cache: gradle | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Run Gradle Tests | |
run: make test | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nf-quilt-test-reports | |
path: | | |
/home/runner/work/nf-quilt/nf-quilt/plugins/nf-quilt/build/reports/tests/test/ |