Skip to content

Commit 6c2918a

Browse files
committed
Changed the test workflow
1 parent 62a010a commit 6c2918a

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/tests.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
name: Node.js CI
1+
name: CI
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
66
build:
77

8+
# Machine environment:
9+
# https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions#ubuntu-1804-lts
10+
# We specify the Node.js version manually below, and use versioned Chrome from Puppeteer.
811
runs-on: ubuntu-latest
912

10-
strategy:
11-
matrix:
12-
node-version: [10.x, 12.x, 14.x]
13-
1413
steps:
15-
- uses: actions/checkout@v2
16-
- name: Use Node.js ${{ matrix.node-version }}
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js 12.8
1716
uses: actions/setup-node@v1
1817
with:
19-
node-version: ${{ matrix.node-version }}
20-
- run: npm test -- --watch=false --browsers=ChromeHeadless
18+
node-version: 12.8
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Build
22+
run: npm run build -- --prod
23+
- name: Test
24+
run: npm test -- --configuration=ci

0 commit comments

Comments
 (0)