-
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (73 loc) · 2.54 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Test
on:
workflow_dispatch:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
test-node-versions:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x, 20.x, 21.x]
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: streetsidesoftware/actions/public/setup-node-pnpm@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install - Build - Test
uses: ./.github/actions/install-build-test
test-os:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x]
os:
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: streetsidesoftware/actions/public/setup-node-pnpm@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install - Build - Test
uses: ./.github/actions/install-build-test
coverage:
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
runs-on: ${{ matrix.os }}
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x]
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}
- run: pnpm i
- run: pnpm run build
- run: pnpm run coverage
- name: Upload coverage Coveralls
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # 2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: 'packages/perf-bench'
path-to-lcov: './packages/perf-bench/coverage/lcov.info'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v3
with:
files: packages/perf-bench/coverage/lcov.info