-
Notifications
You must be signed in to change notification settings - Fork 40
55 lines (43 loc) · 1.15 KB
/
workflow.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
48
49
50
51
52
53
54
55
name: Test
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Run
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
node: [18, 20]
exclude:
- os: windows-latest
node: "17"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
# npm@9 doesn't support Node 17.
- name: Install npm@8
run: npm i -g npm@8
- name: Install
run: npm ci
- name: Lint
if: matrix.os == 'ubuntu-latest'
run: npm run lint
- name: test
run: npm run test:headless
- name: Package vscode plugin
if: matrix.os == 'ubuntu-latest'
run: npm run package && mv packages/vscode-lit-plugin/out/packaged.vsix vscode-lit-plugin.vsix
- name: Upload artifacts
uses: actions/upload-artifact@master
if: matrix.os == 'ubuntu-latest' && matrix.node == 16
with:
name: vscode-lit-plugin.vsix
path: vscode-lit-plugin.vsix