Skip to content

Commit

Permalink
Update github-action to use latest nf-test and Nextflow versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor authored Feb 27, 2024
1 parent 722bb31 commit de2c20f
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Install nextflow
run: sudo bash; mkdir /opt/nextflow; cd /opt/nextflow; wget https://github.com/nextflow-io/nextflow/releases/download/v23.04.4/nextflow; chmod +x nextflow;
- name: Add nextflow to path
run: echo "/opt/nextflow" >> $GITHUB_PATH;
- name: Install nf-test
run: sudo bash; mkdir /opt/nf-test; cd /opt/nf-test; wget https://github.com/askimed/nf-test/releases/download/v0.8.4/nf-test-0.8.4.tar.gz; tar xvfz nf-test-*.tar.gz; chmod +x nf-test;
- name: Add nf-test to pathdocker build -t genepi/nf-gwas .
run: echo "/opt/nf-test" >> $GITHUB_PATH;
- name: Run nf-test tests with development profile
run: docker build -t genepi/nf-gwas .; nf-test test
- name: Run static tests with development profile
run: ./run-tests.sh
- name: Checkout
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Setup Nextflow ${{ matrix.nextflow }}
uses: nf-core/setup-nextflow@v1
with:
version: "latest-edge"

- name: Install nf-test
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash
sudo mv nf-test /usr/local/bin/
- name: Build Docker
run: docker build -t genepi/mtdna-server-2 .

- name: Run Tests
run: nf-test test

0 comments on commit de2c20f

Please sign in to comment.