File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed
Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 55BUILD=0
66SKIPLOCAL=0
77NFAZURE=0
8+ NFGHACTION=0
89NFSUN=0
910NFSLEEP=0
1011NFDEMO=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
6971 echo " skip nfazure"
7072fi
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
You can’t perform that action at this time.
0 commit comments