Skip to content

Commit d66da18

Browse files
authored
ci(test): revert oopsie from f6355c4
1 parent f6355c4 commit d66da18

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

.github/workflows/test.yml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,52 @@
1-
content
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
13+
jobs:
14+
test_matrix:
15+
strategy:
16+
matrix:
17+
node-version:
18+
- 10
19+
- 12
20+
- 14
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
- windows-latest
25+
26+
runs-on: ${{ matrix.os }}
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
- run: git config --global user.name github-actions
31+
- run: git config --global user.email [email protected]
32+
33+
- name: Use Node.js ${{ matrix.node-version }}
34+
uses: actions/setup-node@v1
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
- uses: bahmutov/npm-install@v1
38+
- run: npm run test:ci
39+
40+
# separate job to set as required in branch protection,
41+
# as the build names above change each time Node versions change
42+
test:
43+
runs-on: ubuntu-latest
44+
needs: test_matrix
45+
steps:
46+
- uses: actions/checkout@v2
47+
- name: Use Node.js ${{ matrix.node-version }}
48+
uses: actions/setup-node@v1
49+
with:
50+
node-version: ${{ matrix.node-version }}
51+
- uses: bahmutov/npm-install@v1
52+
- run: npm run lint

0 commit comments

Comments
 (0)