Skip to content

Commit

Permalink
Move Nextflow test to existing tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeckman314 committed Dec 9, 2023
1 parent b163074 commit b47eb7f
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 69 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/build.yaml

This file was deleted.

29 changes: 23 additions & 6 deletions .github/workflows/compliance-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,38 @@
name: Compliance Test

on:
workflow_run:
workflows: ["Build"]
types:
- completed
branches:
- '**'
push:

jobs:
build:
runs-on: ubuntu-latest
container: quay.io/ohsu-comp-bio/slurm
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.18

- name: Check out code
uses: actions/checkout@v2

- name: Build
run: make build

- name: Store funnel
uses: actions/upload-artifact@v2
with:
name: funnelBin
path: funnel

compliance:
strategy:
fail-fast: false
matrix:
version: [1.0.0, 1.1.0]
db: ["boltdb", "mongodb"]
compute: ["local", "slurm"]
needs: build
runs-on: ubuntu-latest
container:
image: quay.io/ohsu-comp-bio/slurm
Expand Down
39 changes: 32 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Go

on:
workflow_run:
workflows: ["Build"]
types:
- completed
branches:
- '**'
- pull_request
- push

jobs:

lint:
name: lint
runs-on: ubuntu-latest
Expand All @@ -23,6 +20,26 @@ jobs:
version: latest
args: --timeout 3m --verbose -D unused -D errcheck -D staticcheck -D govet -D gosimple -D ineffassign

build:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.18

- name: Check out code
uses: actions/checkout@v2

- name: Build
run: make build

- name: Store funnel
uses: actions/upload-artifact@v2
with:
name: funnelBin
path: funnel

unitTest:
runs-on: ubuntu-latest
steps:
Expand All @@ -38,6 +55,7 @@ jobs:

mongoTest:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -56,6 +74,7 @@ jobs:
badgerTest:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -71,6 +90,7 @@ jobs:
slurmTest:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -87,6 +107,7 @@ jobs:
s3Test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -105,6 +126,7 @@ jobs:
nextflow:
runs-on: ubuntu-latest
needs: build
steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -116,4 +138,7 @@ jobs:
path: funnel

- name: Run Nextflow test (nf-canary)
run: funnel task create examples/nextflow.json
run: |
chmod +x funnel
funnel server run --config funnel.config
funnel task create examples/nextflow.json
30 changes: 0 additions & 30 deletions .github/workflows/workflows.yaml

This file was deleted.

0 comments on commit b47eb7f

Please sign in to comment.