-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (37 loc) · 1.09 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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
cache-dependency-path: |
src/tree-sitter-dotvvm/yarn.lock
src/dothtml-basic-ls/yarn.lock
src/dotvvm-vscode/yarn.lock
- name: Restore dependencies and build packages
run: ./build.sh
working-directory: src
- name: Run tree-sitter tests
run: yarn test
working-directory: src/tree-sitter-dotvvm
- name: Run language server tests
run: yarn test
working-directory: src/dothtml-basic-ls
- name: Prepare VS Code extension tests
run: yarn pretest
working-directory: src/dotvvm-vscode
- name: Run VS Code extension tests
uses: GabrielBB/[email protected]
with:
run: yarn test
working-directory: src/dotvvm-vscode