Skip to content

Commit 346d5ff

Browse files
authored
Add basic workflow for PR testing before merge (#5)
1 parent fdc1183 commit 346d5ff

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test Status
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
env:
12+
CI: true
13+
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest]
17+
node-version: [lts/-1, lts/*]
18+
experimental: [false]
19+
include:
20+
- os: ubuntu-latest
21+
node-version: latest
22+
experimental: true
23+
runs-on: ${{ matrix.os }}
24+
continue-on-error: ${{ matrix.experimental }}
25+
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
- run: npm ci
33+
- run: npm test
34+
- run: npm run build
35+
- run: npm update
36+
- run: npm ci
37+
- run: npm test
38+
- run: npm run build
39+

0 commit comments

Comments
 (0)