-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.18 KB
/
Copy pathci.yml
File metadata and controls
49 lines (39 loc) · 1.18 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
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
# Cancel previous runs on the same PR/branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality-checks:
name: Quality Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go 1.25.4
uses: actions/setup-go@v5
with:
go-version: '1.25.4'
cache: true
- name: Verify toolchain infrastructure
run: |
test -f tools.go || (echo "tools.go missing" && exit 1)
test -f scripts/bootstrap.sh || (echo "bootstrap.sh missing" && exit 1)
test -f scripts/pre-commit.sh || (echo "pre-commit.sh missing" && exit 1)
- name: Bootstrap development environment
run: make bootstrap
- name: Verify dependencies are tidy
run: |
go mod tidy
git diff --exit-code go.mod go.sum
- name: Run all quality checks
run: make check
- name: Verify binary
run: |
ls -lh bin/igord
file bin/igord