Skip to content

fix(git): canonicalize active repository identity #1019

fix(git): canonicalize active repository identity

fix(git): canonicalize active repository identity #1019

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
GO_VERSION: "1.25"
jobs:
vet:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Vet
run: go vet ./...
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: latest
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Download modules
run: go mod download
- name: Build
run: go build ./...
- name: Test
run: go test ./...
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
cache-dependency-path: docs-web/pnpm-lock.yaml
- name: Install docs dependencies
working-directory: docs-web
run: pnpm install
- name: Build docs
working-directory: docs-web
run: pnpm build
test-race:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Download modules
run: go mod download
- name: Test with race detector
run: go test -race ./...
functional-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build binary
run: make build
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
cache-dependency-path: tests/functional/pnpm-lock.yaml
- name: Install test dependencies
working-directory: tests/functional
run: pnpm install
- name: Run functional tests
working-directory: tests/functional
run: pnpm exec vitest run --reporter=verbose
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build binary
run: make build
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
cache-dependency-path: tests/integration/pnpm-lock.yaml
- name: Install test dependencies
working-directory: tests/integration
run: pnpm install --frozen-lockfile
- name: Run integration tests
working-directory: tests/integration
run: pnpm exec vitest run --reporter=verbose --exclude='**/lsp*.test.js'
lsp-tests:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build binary
run: make build
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
cache-dependency-path: tests/integration/pnpm-lock.yaml
- name: Install LSP servers
run: |
go install golang.org/x/tools/gopls@latest
npm install -g typescript@5 typescript-language-server
npm install -g vscode-langservers-extracted
npm install -g yaml-language-server
npm install -g svelte-language-server
pip install pyright
sudo apt-get install -y clangd
# typescript-language-server needs classic TypeScript 5.x (with
# lib/tsserver.js); `typescript` latest is now the TS7 native rewrite,
# which lacks tsserver.js -> "Could not find a valid TypeScript
# installation". Install TS5 into the TS fixture so the harness copies it
# into each temp workspace, where the server resolves it.
- name: Provide typescript to the TS fixture workspace
run: npm install --prefix tests/integration/lsp/typescript --no-save typescript@5
- name: Install test dependencies
working-directory: tests/integration
run: pnpm install --frozen-lockfile
- name: Run LSP tests
working-directory: tests/integration
run: pnpm exec vitest run --reporter=verbose lsp