-
Notifications
You must be signed in to change notification settings - Fork 3
87 lines (74 loc) · 1.96 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
87
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: Prettier Action
uses: creyD/prettier_action@v4.3
with:
prettier_options: '--write **/*.{json,yaml,yml,sh,md}'
- name: Run Prettier --check
run: prettier --check .
nf-test:
runs-on: ubuntu-20.04
needs: prettier
env:
NXF_ANSI_LOG: false
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: /usr/local/bin/nextflow
key: ${{ runner.os }}
restore-keys: |
${{ runner.os }}-nextflow-
- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Cache nf-test installation
id: cache-software
uses: actions/cache@v3
with:
path: |
/usr/local/bin/nf-test
/home/runner/.nf-test/nf-test.jar
key: ${{ runner.os }}-nftest
- 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/
# Test the module
- name: Run nf-test
run: |
nf-test test \
--tap=test.tap
- uses: pcolby/tap-summary@v1
with:
path: >-
test.tap