Nextflow Github Actions debug #14
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: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Cache Funnel binary | |
uses: actions/cache@v2 | |
id: cache-funnel | |
with: | |
path: funnel | |
key: ${{ runner.os }}-funnel | |
- name: Build Funnel (if cache does not exist) | |
if: steps.cache-funnel.outputs.cache-hit != 'true' | |
run: make build | |
- name: Restore Funnel from cache (if exists) | |
if: steps.cache-funnel.outputs.cache-hit == 'true' | |
uses: actions/cache@v2 | |
with: | |
path: funnel | |
key: ${{ runner.os }}-funnel | |
- name: Store Funnel | |
uses: actions/upload-artifact@v2 | |
with: | |
name: funnelBin | |
path: funnel | |
nextflow: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Download Funnel | |
uses: actions/download-artifact@v2 | |
with: | |
name: funnelBin | |
path: funnel | |
- name: Start Funnel | |
working-directory: | |
run: | | |
cd funnel/ | |
chmod +x ./funnel | |
./funnel server --LocalStorage.AllowedDirs $HOME run & | |
- name: Install Nextflow | |
run: | | |
cd .. | |
git clone https://github.com/ohsu-comp-bio/nextflow -b feature/test-1.1-bin | |
cd nextflow | |
make compile | |
- name: Install nf-canary and GA4GH-TES plugin | |
run: | | |
cd .. | |
git clone https://github.com/ohsu-comp-bio/nf-canary | |
cd nf-canary | |
cat <<EOF >> nextflow.config | |
plugins { | |
id 'nf-ga4gh' | |
} | |
process.executor = 'tes' | |
tes.endpoint = 'http://localhost:8000' | |
EOF | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
- name: Run nf-canary tests | |
run: | | |
../nextflow/launch.sh run main.nf |