2022-06-13 18:30:07 +00:00
|
|
|
name: Example builds
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-11-14 18:52:04 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2022-06-13 18:30:07 +00:00
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
2022-11-14 18:52:04 +00:00
|
|
|
release:
|
|
|
|
types: [published]
|
2022-06-13 18:30:07 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-02-03 01:52:21 +00:00
|
|
|
example-usage:
|
2022-06-13 18:30:07 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
nextflow_version:
|
2022-11-15 15:57:34 +00:00
|
|
|
- "21.10.3"
|
|
|
|
- "22.04"
|
|
|
|
- "22.03.1-edge"
|
|
|
|
- "latest"
|
|
|
|
- "latest-stable"
|
|
|
|
- "latest-edge"
|
|
|
|
- "latest-everything"
|
2022-06-13 18:30:07 +00:00
|
|
|
all_distribution:
|
|
|
|
- true
|
|
|
|
- false
|
|
|
|
|
|
|
|
steps:
|
2024-10-08 04:54:40 +00:00
|
|
|
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
2024-09-20 02:00:24 +00:00
|
|
|
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
|
2022-06-13 18:30:07 +00:00
|
|
|
with:
|
2024-01-26 23:17:30 +00:00
|
|
|
node-version: 20
|
2022-11-15 15:57:34 +00:00
|
|
|
cache: "npm"
|
2022-11-13 22:05:17 +00:00
|
|
|
- run: npm ci
|
2022-11-13 22:50:40 +00:00
|
|
|
- run: npm run build
|
2022-11-13 22:11:09 +00:00
|
|
|
- run: npm run package
|
2024-09-25 00:07:34 +00:00
|
|
|
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4
|
2024-02-03 01:55:15 +00:00
|
|
|
if: ${{ env.ACT }}
|
|
|
|
with:
|
|
|
|
java-version: 11
|
|
|
|
distribution: zulu
|
2022-06-13 18:30:07 +00:00
|
|
|
- uses: ./
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.nextflow_version }}
|
|
|
|
all: ${{ matrix.all_distribution }}
|
|
|
|
- run: nextflow -v
|
2023-06-23 19:29:08 +00:00
|
|
|
|
2024-02-03 01:52:21 +00:00
|
|
|
example-maximized-build-space:
|
2023-06-23 19:29:08 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-03-01 00:04:50 +00:00
|
|
|
- uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c # v10
|
2024-10-08 04:54:40 +00:00
|
|
|
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
2024-09-20 02:00:24 +00:00
|
|
|
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
|
2023-06-23 19:29:08 +00:00
|
|
|
with:
|
2024-01-26 23:17:30 +00:00
|
|
|
node-version: 20
|
2023-06-23 19:29:08 +00:00
|
|
|
cache: "npm"
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run package
|
2024-09-25 00:07:34 +00:00
|
|
|
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4
|
2024-02-03 01:55:15 +00:00
|
|
|
if: ${{ env.ACT}}
|
|
|
|
with:
|
|
|
|
java-version: 11
|
|
|
|
distribution: zulu
|
2023-06-23 19:29:08 +00:00
|
|
|
- uses: ./
|
|
|
|
- run: nextflow -v
|