Skip to content

Commit e3b00d5

Browse files
Run testing on Node 1.16.x
1 parent d796ea3 commit e3b00d5

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

.github/workflows/testing.yml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,48 @@ on:
1010
- "package.json"
1111
- "**/*.ts"
1212
- "**/*.js"
13+
workflow_dispatch:
1314

1415
jobs:
1516
testing:
1617
runs-on: ${{ matrix.os }}
1718
strategy:
19+
fail-fast: false
1820
matrix:
1921
os: [ ubuntu-latest, macos-latest, windows-latest ]
20-
node-version: [ 12.x, 14.x ]
22+
node-version: [ 12.x, 14.x, 16.x ]
2123
name: Testing
2224
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-node@v2.1.4
25-
name: Use Node.js ${{ matrix.node-version }}
25+
- name: Check out code base
26+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
27+
uses: actions/checkout@v2
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Check out code base
32+
if: github.event_name == 'pull_request'
33+
uses: actions/checkout@v2
34+
with:
35+
fetch-depth: 0
36+
ref: ${{ github.event.pull_request.head.sha }}
37+
38+
- name: Set up Node.js ${{ matrix.node-version }}
39+
uses: actions/setup-node@v2.1.4
2640
with:
2741
node-version: ${{ matrix.node-version }}
2842
registry-url: 'https://registry.npmjs.org'
29-
- run: yarn install
30-
- run: yarn run test
31-
- run: yarn run build
32-
- run: yarn run cli:install
33-
- run: cairn
43+
44+
- name: Get dependencies
45+
run: yarn install
46+
47+
- name: Run test
48+
run: yarn run test --coverage
49+
50+
- name: Run build
51+
run: yarn run build
52+
53+
- name: Install cli
54+
run: yarn run cli:install
55+
56+
- name: Run cli
57+
run: cairn

0 commit comments

Comments
 (0)