Skip to content

Commit 2582f4a

Browse files
authored
.github: add a basic CI workflow (#2)
Check that Go code is formatted, tests pass, and lint checks are clean.
1 parent c7a2e2d commit 2582f4a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/go-presubmit.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Go presubmit
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
name: Go presubmit
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
matrix:
20+
go-version: ['stable']
21+
os: ['ubuntu-latest']
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Install Go ${{ matrix.go-version }}
25+
uses: actions/setup-go@v5
26+
with:
27+
go-version: ${{ matrix.go-version }}
28+
- uses: creachadair/go-presubmit-action@v2

0 commit comments

Comments
 (0)