Skip to content

Commit 546b923

Browse files
committed
ci: "push" for main branch
1 parent 5e84f8e commit 546b923

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
48

59
jobs:
610
nodejs:
711
runs-on: ubuntu-20.04
812

913
strategy:
1014
matrix:
11-
node-version: [12.x, 14.x]
15+
node-version: ['12', '14']
1216

1317
steps:
1418
- uses: actions/checkout@v2
@@ -34,8 +38,10 @@ jobs:
3438

3539
- name: Setup Node.js ${{ matrix.node-version }}
3640
uses: actions/setup-node@v1
41+
with:
42+
node-version: '14'
3743

3844
- run: npm install -g npm
3945
- run: npm ci
40-
- run: npm run test:browser -- --browsers "${{ matrix.browser }}"
46+
- run: npm run test:browser -- --browsers ${{ matrix.browser }}
4147

0 commit comments

Comments
 (0)