Skip to content

Commit 080b0df

Browse files
nodeselectorCopilot
andcommitted
ci(go): scaffold workflow for PR triggers
Bare workflow file so GitHub recognizes it on pull_request events. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0cb38ad commit 080b0df

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
go:
14+
name: Go
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
go-version: ['1.19', '1.22', '1.23']
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: actions/setup-go@v5
23+
with:
24+
go-version: ${{ matrix.go-version }}
25+
26+
- name: Generate
27+
run: make generate
28+
29+
- name: Verify no drift
30+
run: git diff --exit-code go/pkg/lockfile/schema_gen.go
31+
32+
- name: Lint
33+
run: make lint
34+
35+
- name: Test
36+
run: make test

0 commit comments

Comments
 (0)