-
Notifications
You must be signed in to change notification settings - Fork 3
86 lines (73 loc) · 1.98 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: test
on:
push:
branches: [main]
paths-ignore:
- "!**/*.md"
pull_request:
branches: [main]
paths-ignore:
- "!**/*.md"
merge_group:
types: [checks_requested]
branches: [main]
# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install NodeJS
uses: actions/setup-node@v3
- name: Install Prettier
run: npm install -g prettier
- name: Run Prettier --check
run: prettier --check .
nf-test:
runs-on: ubuntu-20.04
env:
NXF_ANSI_LOG: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Cache software installation
id: cache-software
uses: actions/cache@v3
with:
path: |
/usr/local/bin/nextflow
/usr/local/bin/nf-test
/home/runner/.nf-test/nf-test.jar
key: ${{ runner.os }}-software-${{ github.workspace }}
- name: Install Nextflow
env:
CAPSULE_LOG: none
if: steps.cache-software.outputs.cache-hit != 'true'
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Install nf-test
if: steps.cache-software.outputs.cache-hit != 'true'
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash
sudo mv nf-test /usr/local/bin/
nf-test update-plugins
- name: Run pipeline and cache dependencies
run: |
nextflow run main.nf
# Test the module
- name: Run nf-test
run: |
java -version
nf-test test --tap=test.tap
- uses: pcolby/tap-summary@v1
with:
path: >-
test.tap