Skip to content

Commit be9616d

Browse files
committed
add e2e tests to tests workflow
1 parent aa71087 commit be9616d

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Run Tests
33
on: [push]
44

55
jobs:
6-
test:
6+
unit-test:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
@@ -19,6 +19,24 @@ jobs:
1919
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
2020
- name: Install dependencies
2121
run: npm install
22-
- name: Run Tests
22+
- name: Run unit tests
2323
run: npm run test:ci
24+
e2e-test:
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
matrix:
28+
node-version: [16.x]
29+
os: [ubuntu-latest, macOS-latest]
30+
steps:
31+
- uses: actions/checkout@v3
32+
- name: Use Node.js ${{ matrix.node-version }}
33+
uses: actions/setup-node@v3
34+
with:
35+
node-version: ${{ matrix.node-version }}
36+
- name: Configure NPM Token
37+
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
38+
- name: Install dependencies
39+
run: npm install
40+
- name: Run unit tests
41+
run: npm run test:e2e:ci
2442

0 commit comments

Comments
 (0)