forked from woocommerce/google-listings-and-ads
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1 KB
/
js-unit-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
name: JavaScript Unit Tests
on:
push:
branches:
- trunk
- develop
paths:
- "**.js"
- package.json
- package-lock.json
- .github/workflows/js-unit-tests.yml
pull_request:
paths:
- "**.js"
- package.json
- package-lock.json
- .github/workflows/js-unit-tests.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
UnitTests:
name: JavaScript unit tests
runs-on: ubuntu-latest
env:
FORCE_COLOR: 2
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Prepare node
uses: woocommerce/grow/prepare-node@actions-v1
with:
node-version-file: ".nvmrc"
- name: Run JavaScript unit tests
run: npm run test:js
- name: Upload JS unit coverage report
uses: codecov/codecov-action@v3
with:
files: coverage/clover.xml
flags: js-unit-tests
name: js-coverage-report