-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.04 KB
/
ci.yml
File metadata and controls
53 lines (41 loc) · 1.04 KB
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
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
merge_group:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
test:
name: Test & Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6.0.2
- name: Set up Go
uses: actions/setup-go@v6.4.0
with:
go-version-file: go.mod
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test ./... -count=1
- name: Run race tests
run: go test -race ./... -count=1
- name: Build
run: go build ./...
- name: Coverage gates
run: ./hack/coverage-check.sh
- name: Install ripgrep
run: |
sudo apt-get update
sudo apt-get install -y ripgrep
- name: Repo truth guardrails
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./hack/verify-repo-truth.sh
- name: Lifecycle lint
run: go run hack/lifecycle-check.go