-
-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (50 loc) · 1.45 KB
/
test.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
name: Test
on: [push, pull_request]
permissions: read-all
jobs:
test_linux:
name: Test - Ubuntu Node 16
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and link
run: npm ci && npm link
- name: Run tests
run: npm run test:coverage
- name: Submitting code coverage to codecov
run: |
./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
test_windows:
name: Test - Windows
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and link
run: npm ci && npm link
- name: Run tests
run: npm run test
test_mac:
name: Test - MacOs
runs-on: macos-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and link
run: npm ci && npm link
- name: Run tests
run: npm run test