Skip to content

Commit 66e0c58

Browse files
committed
💚 Run an example on GitHub CI
Signed-off-by: kei-g <km.8k6ce+github@gmail.com>
1 parent 06e07f0 commit 66e0c58

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,28 @@ jobs:
4343
run: npm install
4444
- name: Check code coverages
4545
run: npm test
46+
example:
47+
name: Run an example on Node.js ${{ matrix.node }}
48+
runs-on: ubuntu-latest
49+
strategy:
50+
matrix:
51+
node:
52+
- '14.17.5'
53+
- '16.13.1'
54+
- '17.2.0'
55+
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v2
58+
with:
59+
fetch-depth: 1
60+
- name: Setup Node.js
61+
uses: actions/setup-node@v2
62+
with:
63+
node-version: ${{ matrix.node }}
64+
- name: Setup modules
65+
run: npm install
66+
- name: Run an example
67+
run: npm start
4668
name: test
4769
on:
4870
pull_request:

0 commit comments

Comments
 (0)