-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (45 loc) · 1.25 KB
/
ci-tests.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
# DOCS:
# https://snyk.io/blog/vs-code-extension-building-auto-cicd-with-github-actions/
# https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions
# https://github.com/jeff-hykin/better-cpp-syntax
on:
push:
branches:
- "main"
paths-ignore:
- '.gitignore'
- '.gitattributes'
- '.vscodeignore'
- '**.txt'
- '**.md'
- '**.rc'
pull_request:
jobs:
test:
name: Test
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install dependencies
run: npm install
- name: Run headless test 1 (Basic)
run: npm ci
#- name: Run headless test (Mocha)
#uses: GabrielBB/[email protected]
#with:
# run: |
# npm test
- name: Run headless test 2 (Validate grammar)
# Test once the grammar. FIXME: we need SCP code examples!
run: |
export CI_NIX_FOLDER="$PWD"
.ci-commands/project/test.sh
if: runner.os == 'Linux'