-
Notifications
You must be signed in to change notification settings - Fork 13
47 lines (44 loc) · 1.15 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
release:
types: [published]
name: CI
jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
skip: "yarn.lock,.git"
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v4
- name: Tests with Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn run pretest
- run: xvfb-run yarn run test
publish:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'release' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Publish
run: |
yarn install --dev
yarn run deploy-vs -p ${{ secrets.VSCE_PAT }}
yarn run deploy-ovsx -p ${{ secrets.OPEN_VSX_PAT }}