mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 09:49:56 +00:00
Thomas A. Christensen II
58b277c92b
For some reason, I need to pin the Java install when using act. This is not needed when using the GitHub Actions runner, so add an escape clause to only run this extra step when using act.
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
name: Example builds
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
example-usage:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
nextflow_version:
|
|
- "21.10.3"
|
|
- "22.04"
|
|
- "22.03.1-edge"
|
|
- "latest"
|
|
- "latest-stable"
|
|
- "latest-edge"
|
|
- "latest-everything"
|
|
all_distribution:
|
|
- true
|
|
- false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
cache: "npm"
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run package
|
|
- uses: actions/setup-java@v2
|
|
if: ${{ env.ACT }}
|
|
with:
|
|
java-version: 11
|
|
distribution: zulu
|
|
- uses: ./
|
|
with:
|
|
version: ${{ matrix.nextflow_version }}
|
|
all: ${{ matrix.all_distribution }}
|
|
- run: nextflow -v
|
|
|
|
example-maximized-build-space:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: easimon/maximize-build-space@v7
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
cache: "npm"
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run package
|
|
- uses: actions/setup-java@v2
|
|
if: ${{ env.ACT}}
|
|
with:
|
|
java-version: 11
|
|
distribution: zulu
|
|
- uses: ./
|
|
- run: nextflow -v
|