-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 882 Bytes
/
js.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
name: JS lint & test
on:
push:
branches-ignore:
- 'main-built'
jobs:
js-lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.11
cache: 'yarn'
- name: Install packages
run: yarn install --immutable
- name: JS lint
run: yarn lint:js
- name: JS test
run: yarn test:js
- name: JS unit test coverage report
uses: codecov/codecov-action@v4
with:
flags: jstests
name: codecov-jsunit
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: js-report
path: js-report/
retention-days: 30