-
Notifications
You must be signed in to change notification settings - Fork 89
42 lines (39 loc) · 909 Bytes
/
build.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
name: build
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Run Tests (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a npm test
- name: Run Tests (MacOS, Windows)
if: runner.os != 'Linux'
run: npm test
- name: Package extension
if: runner.os == 'Linux'
run: npm run vscode:package
- name: Upload extension
uses: actions/upload-artifact@v4
if: runner.os == 'Linux'
with:
name: vscode-apex-pmd
path: apex-pmd-*.vsix