-
-
Notifications
You must be signed in to change notification settings - Fork 18
38 lines (34 loc) · 879 Bytes
/
test.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
name: Test
on: [push, pull_request]
permissions: read-all
concurrency:
group: ${{ github.ref_name }}-${{ github.workflow }}
cancel-in-progress: false
jobs:
test:
strategy:
matrix:
node_version: ["18"]
os: [ubuntu-latest, macos-latest, windows-latest]
name: Test
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Compile
run: npm run compile
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
env:
NPM_DEBUG: vscode-groovy-lint
with:
run: npm run test