From 262dcc28d381dfc9fcba756797b764358a90b8e9 Mon Sep 17 00:00:00 2001 From: Nicholas Wiltsie Date: Fri, 5 Apr 2024 16:17:26 -0700 Subject: [PATCH 1/2] Update Nextflow test workflows --- .github/workflows/nextflow-tests.yaml | 21 ++++++++++++++------- .github/workflows/trigger-tests.yaml | 20 ++++++++++++++++++++ CHANGELOG.md | 3 +++ 3 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/trigger-tests.yaml diff --git a/.github/workflows/nextflow-tests.yaml b/.github/workflows/nextflow-tests.yaml index 6e6d9e4..93c6aa6 100644 --- a/.github/workflows/nextflow-tests.yaml +++ b/.github/workflows/nextflow-tests.yaml @@ -1,14 +1,21 @@ --- -name: Nextflow Tests +name: Nextflow on: - push: - branches: - - main - pull_request: - branches: - - main + workflow_run: + workflows: [Trigger Tests] + types: + - completed + +permissions: + actions: read + contents: write + packages: read + pull-requests: write + statuses: write jobs: tests: + if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: uclahs-cds/tool-Nextflow-action/.github/workflows/nextflow-tests.yml@main + secrets: inherit diff --git a/.github/workflows/trigger-tests.yaml b/.github/workflows/trigger-tests.yaml new file mode 100644 index 0000000..8e0e00a --- /dev/null +++ b/.github/workflows/trigger-tests.yaml @@ -0,0 +1,20 @@ +--- +name: Trigger tests + +on: + issue_comment: + types: [created] + pull_request_target: + branches: + - main + push: + branches: + - main + +permissions: + pull-requests: write + statuses: write + +jobs: + check-user: + uses: uclahs-cds/tool-Nextflow-action/.github/workflows/test-setup.yml@main diff --git a/CHANGELOG.md b/CHANGELOG.md index ab92432..5ba6a7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### [Changed] +- Update Nextflow configuration test workflows + ## [10.0.0] - 2024-03-29 ### Added - Add Action to generate documentation in GitHub Pages From 437879269130cb4ddf86db57e56bd4ce9df9114e Mon Sep 17 00:00:00 2001 From: Nicholas Wiltsie Date: Thu, 11 Apr 2024 14:13:13 -0700 Subject: [PATCH 2/2] Rename workflow to 'Nextflow config tests' --- .github/workflows/nextflow-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nextflow-tests.yaml b/.github/workflows/nextflow-tests.yaml index 93c6aa6..0338914 100644 --- a/.github/workflows/nextflow-tests.yaml +++ b/.github/workflows/nextflow-tests.yaml @@ -1,5 +1,5 @@ --- -name: Nextflow +name: Nextflow config tests on: workflow_run: