-
Notifications
You must be signed in to change notification settings - Fork 6
60 lines (55 loc) · 1.72 KB
/
node_tests.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
name: Node Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
node: [18]
runs-on: ${{ matrix.platform }}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Set git name/email
run: |
git config --global user.email "[email protected]"
git config --global user.name "bids-maintenance"
- name: Set up Node
working-directory: ./legacy
run: |
npm install -g npm@^7
npm install
- name: Eslint
working-directory: ./legacy
run: npm run lint
- name: Get bids-examples data
working-directory: ./legacy
run: git submodule update --init
- name: Jest tests
working-directory: ./legacy
run: npm run coverage -- --maxWorkers=2 --testTimeout=10000 --colors
- name: Upload to codecov
working-directory: ./legacy
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Smoke tests
working-directory: ./legacy
run: |
bids-validator/bin/bids-validator bids-validator/tests/data/valid_headers/ --ignoreNiftiHeaders
bids-validator/bin/bids-validator bids-validator/tests/data/valid_headers/ --ignoreNiftiHeaders --json