config-lsp/.github/workflows/pr-tests.yaml
2025-03-16 14:56:42 +01:00

34 lines
721 B
YAML

name: Run Go tests
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.22.x' ]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- 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@v3
with:
name: vs-code-extension
path: result/bin/vs-code-extension.vsix