-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use cache correctly and streamline versions through workflow reuse
- Loading branch information
1 parent
9b5a044
commit 95654c2
Showing
3 changed files
with
127 additions
and
74 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
name: nf-scil checks | ||
on: | ||
workflow_call: | ||
inputs: | ||
nextflow_version: | ||
description: "Nextflow version to use" | ||
required: false | ||
type: string | ||
default: "24.04.4" | ||
nf_core_version: | ||
description: "nf-core version to use" | ||
required: false | ||
type: string | ||
default: "2.14.*" | ||
nf_test_version: | ||
description: "nf-test version to use" | ||
required: false | ||
type: string | ||
default: "0.9.0-rc1" | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -11,6 +27,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
cache: 'pip' | ||
- uses: pre-commit/[email protected] | ||
# FIXME Flip this off once we get to less than a couple hundred. Adding | ||
# this so it will only run against changed files. It'll make it much | ||
|
@@ -21,13 +39,11 @@ jobs: | |
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install NodeJS | ||
uses: actions/setup-node@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
cache: 'npm' | ||
|
||
- name: Install Prettier | ||
run: npm install -g [email protected] | ||
|
@@ -39,10 +55,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
cache: 'npm' | ||
|
||
- name: Install editorconfig-checker | ||
run: npm install -g editorconfig-checker | ||
|
@@ -111,6 +127,8 @@ jobs: | |
with: | ||
type: "module" | ||
component: ${{ matrix.module }} | ||
nextflow_version: ${{ inputs.nextflow_version }} | ||
nf_core_version: ${{ inputs.nf_core_version }} | ||
secrets: inherit | ||
|
||
lint-subworkflows: | ||
|
@@ -127,6 +145,8 @@ jobs: | |
with: | ||
type: "subworkflow" | ||
component: ${{ matrix.subworkflow }} | ||
nextflow_version: ${{ inputs.nextflow_version }} | ||
nf_core_version: ${{ inputs.nf_core_version }} | ||
secrets: inherit | ||
|
||
nf-test: | ||
|
@@ -149,6 +169,8 @@ jobs: | |
profile: ${{ matrix.profile }} | ||
paths: ${{ matrix.path }} | ||
runner: ${{ matrix.runner }} | ||
nextflow_version: ${{ inputs.nextflow_version }} | ||
nf_test_version: ${{ inputs.nf_test_version }} | ||
secrets: inherit | ||
|
||
confirm-pass: | ||
|
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
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