Add Nextflow (nf-canary) tests to Funnel #295
Workflow file for this run
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
name: Go | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21 | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
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: | |
- 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: Unit Tests | |
run: make test-verbose | |
mongoTest: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Download funnel bin | |
uses: actions/download-artifact@v2 | |
with: | |
name: funnelBin | |
- name: MongoTest | |
run: | | |
chmod +x funnel | |
make start-mongodb | |
sleep 10 | |
make test-mongodb | |
badgerTest: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Download funnel bin | |
uses: actions/download-artifact@v2 | |
with: | |
name: funnelBin | |
- name: Badger Test | |
run: | | |
chmod +x funnel | |
make test-badger | |
slurmTest: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Download funnel bin | |
uses: actions/download-artifact@v2 | |
with: | |
name: funnelBin | |
- name: Slurm Test | |
run: | | |
chmod +x funnel | |
make test-slurm | |
s3Test: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Download funnel bin | |
uses: actions/download-artifact@v2 | |
with: | |
name: funnelBin | |
- name: S3 Test | |
run: | | |
chmod +x funnel | |
make start-generic-s3 | |
sleep 10 | |
make test-generic-s3 | |
nextflow: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Download funnel | |
uses: actions/download-artifact@v2 | |
with: | |
name: funnelBin | |
- name: Run Nextflow test (nf-canary) | |
run: | | |
chmod +x funnel | |
./funnel server run & | |
git clone https://github.com/ohsu-comp-bio/nf-canary | |
cd nf-canary | |
nextflow run main.nf |