From 1521903b0fd7246fc1d71fd2e6ad8901f8e956e0 Mon Sep 17 00:00:00 2001 From: AmstlerStephan Date: Mon, 17 Jun 2024 17:00:55 +0200 Subject: [PATCH] Add CI tests for nf-test --- .github/workflows/ci-tests.yml | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/ci-tests.yml diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml new file mode 100644 index 0000000..9643375 --- /dev/null +++ b/.github/workflows/ci-tests.yml @@ -0,0 +1,48 @@ +name: CI Tests + +on: [push, pull_request] + +jobs: + + test: + + runs-on: ubuntu-latest + strategy: + matrix: + shard: [1, 2, 3, 4, 5] + + steps: + - 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 + uses: nf-core/setup-nextflow@v1 + with: + version: "latest-edge" + + - name: Install nf-test + run: | + wget -qO- get.nf-test.com | bash -s 0.9.0-rc2 + sudo mv nf-test /usr/local/bin/ + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build Docker + uses: docker/build-push-action@v5 + with: + context: . + push: false + load: true + tags: "genepi/umi-pipeline-nf" + cache-from: type=gha + cache-to: type=gha,mode=max + + - name: Run Tests (Shard ${{ matrix.shard }}/${{ strategy.job-total }}) + run: nf-test test --ci --shard ${{ matrix.shard }}/${{ strategy.job-total }} \ No newline at end of file