From e64bc0d948076eb57edb51bfdf4502956121c793 Mon Sep 17 00:00:00 2001 From: Nicholas Wiltsie Date: Fri, 5 Apr 2024 16:01:59 -0700 Subject: [PATCH 1/2] Add new Nextflow test files --- .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 6e6d9e47..93c6aa6e 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 00000000..8e0e00ad --- /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 f4332a55..2ffb021b 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 + --- ## [1.0.0] - 2024-03-13 From 238f2621e4f1cc1d4b247f942ed0a2b6053e3d40 Mon Sep 17 00:00:00 2001 From: Nicholas Wiltsie Date: Thu, 11 Apr 2024 14:09:45 -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 93c6aa6e..03389142 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: