Skip to content

chore(rel): update changelog (#1181) #6432

chore(rel): update changelog (#1181)

chore(rel): update changelog (#1181) #6432

Workflow file for this run

name: Go CI
on:
workflow_dispatch:
push:
env:
GOPRIVATE: "github.com/sourcegraph/*"
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"
jobs:
go-test:
strategy:
matrix:
go-version: [1.24.1]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: (Windows) Enable pulling Go modules from private sourcegraph/sourcegraph
if: runner.os == 'Windows'
run: git config --global url."https://$env:[email protected]/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
- name: (Default) Enable pulling Go modules from private sourcegraph/sourcegraph
if: runner.os != 'Windows'
run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
- run: |
go test -race -v ./...
go test -v ./...
# This job provides a stable name for branch protection rules
# It will only pass if all Go CI matrix tests above pass
go-test-complete:
runs-on: ubuntu-latest
needs: go-test
if: always()
steps:
- name: Check Go CI results
run: |
if [[ "${{ needs.go-test.result }}" != "success" ]]; then
echo "One or more Go CI tests failed"
exit 1
fi
echo "All Go CI tests passed"