Skip to content

Commit 399ed8a

Browse files
committed
chore: add CI
1 parent 482bdcf commit 399ed8a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
name: Build
12+
strategy:
13+
matrix:
14+
go-version: [stable, oldstable]
15+
os: [ubuntu-latest, macos-latest, windows-latest]
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-go@v5
20+
with:
21+
go-version: ${{ matrix.go-version }}
22+
- name: Build gofmt
23+
run: go build ./gofmt
24+
- name: Build goimports
25+
run: go build ./goimports

0 commit comments

Comments
 (0)