Skip to content

Commit 0a3f62e

Browse files
committed
run validation pipelines in azure using github action (#85)
* run validation pipelines in azure using github action Signed-off-by: Jorge Aguilera <[email protected]>
1 parent 1192f6e commit 0a3f62e

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/nfazure.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: nf-azure CI
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build:
7+
name: Build nf-nomad
8+
if: "!contains(github.event.head_commit.message, '[ci skip]')"
9+
runs-on: nfazure
10+
timeout-minutes: 10
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
java_version: [19]
15+
16+
steps:
17+
- name: Environment
18+
run: env | sort
19+
20+
- name: Checkout
21+
uses: actions/checkout@v1
22+
with:
23+
fetch-depth: 1
24+
submodules: true
25+
26+
- name: Setup Java ${{ matrix.java_version }}
27+
uses: actions/setup-java@v1
28+
with:
29+
java-version: ${{matrix.java_version}}
30+
architecture: x64
31+
32+
- name: Compile
33+
run: ./gradlew assemble
34+
35+
- name: Tests
36+
run: ./gradlew check
37+
env:
38+
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
39+
40+
- name: Install
41+
run: ./gradlew clean unzipPlugin -x test -P version=nfazure
42+
env:
43+
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
44+
45+
- name: Validate
46+
run: |
47+
cd validation
48+
export NOMAD_PLUGIN_VERSION=nfazure
49+
./run-all.sh --skiplocal --nfgithub

validation/run-all.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -uex
55
BUILD=0
66
SKIPLOCAL=0
77
NFAZURE=0
8+
NFGHACTION=0
89
NFSUN=0
910
NFSLEEP=0
1011
NFDEMO=0
@@ -13,6 +14,7 @@ NFDEMO=0
1314
[[ -f $HOME/.nextflow/plugins/nf-nomad-latest/ ]] && BUILD=1
1415
[[ "$@" =~ '--skiplocal' ]] && SKIPLOCAL=1
1516
[[ "$@" =~ '--nfazure' ]] && NFAZURE=1
17+
[[ "$@" =~ '--nfgithub' ]] && NFGHACTION=1
1618
[[ "$@" =~ '--nfsun' ]] && NFSUN=1
1719
[[ "$@" =~ '--sleep' ]] && NFSLEEP=1
1820
[[ "$@" =~ '--demo' ]] && NFDEMO=1
@@ -69,6 +71,13 @@ else
6971
echo "skip nfazure"
7072
fi
7173

74+
if [ "$NFGHACTION" == 1 ]; then
75+
cd ~/integration-tests/az-nomadlab; NXF_ASSETS=/projects/assets nextflow run hello -w /projects/ -c nextflow.config
76+
cd ~/integration-tests/az-nomadlab; NXF_ASSETS=/projects/assets nextflow run bactopia/bactopia -c nextflow.config -w /projects -profile test,docker --outdir /projects/bactopia/outdir --accession SRX4563634 --coverage 100 --genome_size 2800000 --datasets_cache /projects/bactopia/datasets
77+
else
78+
echo "skip ghaction"
79+
fi
80+
7281

7382
#NOTE: In this use-case you need to be in the same network of sun-nomadlab server, for example using a tailscale connection
7483
#NOTE2: You need to have 2 secrets stored in your Nextlow: SUN_NOMADLAB_ACCESS_KEY and SUN_NOMADLAB_SECRET_KEY

0 commit comments

Comments
 (0)