Skip to content

Commit 541b1a7

Browse files
committed
Update
1 parent bc34324 commit 541b1a7

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
4-
name: Node.js CI
5-
1+
name: Test Extension
62
on:
73
push:
8-
branches: [ master ]
4+
branches:
5+
- master
96
pull_request:
107
branches: [ master ]
118

129
jobs:
1310
build:
14-
15-
runs-on: ubuntu-latest
16-
1711
strategy:
1812
matrix:
19-
node-version: [17.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21-
13+
os: [macos-latest, ubuntu-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
2215
steps:
23-
- uses: actions/checkout@v3
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v3
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Install Node.js
19+
uses: actions/setup-node@v1
2620
with:
27-
node-version: ${{ matrix.node-version }}
28-
cache: 'npm'
29-
- run: npm ci
30-
- run: npm run build --if-present
21+
node-version: 10.x
22+
- run: npm install
23+
- run: xvfb-run -a npm test
24+
if: runner.os == 'Linux'
3125
- run: npm test
26+
if: runner.os != 'Linux'

0 commit comments

Comments
 (0)