-
Notifications
You must be signed in to change notification settings - Fork 130
66 lines (54 loc) · 1.4 KB
/
ci-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
61
62
63
64
65
66
name: CI tests
on:
push:
branches: [ master ]
pull_request:
branches:
- master
- beta
paths:
- "./.github/**.yml"
- "**/packages/**.js"
- "**/packages/**/package.json"
- "test/**/*.js"
jobs:
pr-tests:
name: Install, lint, test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x]
os: [ubuntu-latest, windows-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout actions
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
git checkout -b master origin/master
git checkout -
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install npm 7
run: npm i -g npm@7 --registry=https://registry.npmjs.org
- name: Install
run: npm ci
- name: Lint
run: npm run lint:ci
# - name: Unit tests
# run: npm test --workspaces
# - name: E2E tests
# run: npm run test:e2e
- name: Create folder
run: |
mkdir .nyc_output_changes
- name: Run Coverage
run: npm run test:cov:changes
- name: Comment Test Coverage
uses: AthleticNet/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: coverage.json
title: Test Coverage