setup-nextflow/.github/workflows/example.yml

70 lines
1.5 KiB
YAML
Raw Normal View History

2022-06-13 13:30:07 -05:00
name: Example builds
on:
push:
2022-11-14 12:52:04 -06:00
branches:
- master
2022-06-13 13:30:07 -05:00
pull_request:
workflow_dispatch:
2022-11-14 12:52:04 -06:00
release:
types: [published]
2022-06-13 13:30:07 -05:00
jobs:
example-usage:
2022-06-13 13:30:07 -05:00
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"
2022-06-13 13:30:07 -05:00
all_distribution:
- true
- false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
2022-11-13 16:05:17 -06:00
- run: npm ci
2022-11-13 16:50:40 -06:00
- run: npm run build
2022-11-13 16:11:09 -06:00
- run: npm run package
- uses: actions/setup-java@v2
if: ${{ env.ACT }}
with:
java-version: 11
distribution: zulu
2022-06-13 13:30:07 -05:00
- uses: ./
with:
version: ${{ matrix.nextflow_version }}
all: ${{ matrix.all_distribution }}
- run: nextflow -v
2023-06-23 14:29:08 -05:00
example-maximized-build-space:
2023-06-23 14:29:08 -05:00
runs-on: ubuntu-latest
steps:
- uses: easimon/maximize-build-space@v7
2023-06-23 14:29:08 -05:00
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
2023-06-23 14:29:08 -05:00
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
2023-06-23 14:29:08 -05:00
- uses: ./
- run: nextflow -v