Skip to content

Commit 6949bea

Browse files
committed
chore(test): test github action commit
1 parent 5d2147e commit 6949bea

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
# https://github.com/webpack/webpack/blob/main/.github/workflows/test.yml
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macos-latest]
14+
node-version: [10.x, 18.x]
15+
part: [a, b]
16+
include:
17+
- os: ubuntu-latest
18+
node-version: 18.x
19+
part: a
20+
- os: ubuntu-latest
21+
node-version: 16.x
22+
part: a
23+
- os: ubuntu-latest
24+
node-version: 14.x
25+
part: a
26+
- os: ubuntu-latest
27+
node-version: 12.x
28+
part: a
29+
runs-on: ${{ matrix.os }}
30+
steps:
31+
- uses: actions/checkout@v3
32+
- uses: pnpm/action-setup@v2
33+
with:
34+
version: ^7.27.1
35+
- uses: actions/setup-node@v3
36+
with:
37+
node-version: '16'
38+
cache: 'pnpm'
39+
40+
- run: pnpm i
41+
- run: pnpm build:pkg
42+
- run: pnpm test
43+
44+
- uses: codecov/codecov-action@v3
45+
with:
46+
directory: coverage

0 commit comments

Comments
 (0)