-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (31 loc) · 972 Bytes
/
test_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
name: Javascript testing
on:
# Warning: changing run conditions could prevent coverage report in PR, see codecov.yml for `after_n_builds`
- push
- pull_request
jobs:
js_test:
runs-on: ubuntu-latest
env:
TZ: Europe/London
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Node Information
run: node --version
- name: Install
run: yarn install
- name: Run yarn test
run: yarn coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: javascript,${{ github.event_name }}
fail_ci_if_error: true
disable_search: true
files: ${{ github.workspace }}/app/frontend/coverage/lcov.info
# Note: see codecov.yml for more additional settings