-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (25 loc) · 924 Bytes
/
pr-tests.yaml
File metadata and controls
36 lines (25 loc) · 924 Bytes
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
name: Run Go tests
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Check if project can be linted
run: nix develop --command bash -c "just lint" && git diff --exit-code
- name: Check if antlr parsers are up to date
run: nix develop --command bash -c "just update-antlr-parsers" && git diff --exit-code
- name: Check Nix flake
run: nix flake check
- name: Build app
run: nix develop --command bash -c "cd server && go build"
- name: Build VS Code extension
run: nix build .#vs-code-extension
- name: Upload VS Code extension
uses: actions/upload-artifact@v4
with:
name: vs-code-extension
path: result/config-lsp-*.vsix