Skip to content

Commit 3cc74be

Browse files
authored
Add github workflow for lint and test (#11)
* Add github workflow for lint and test * Delete buildkite pipeline * Update staticcheck version
1 parent f62e55c commit 3cc74be

File tree

3 files changed

+32
-15
lines changed

3 files changed

+32
-15
lines changed

.buildkite/pipeline.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,35 @@ on: ["push", "pull_request"]
44
permissions:
55
contents: read
66

7-
jobs: {}
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-go@v5
13+
with:
14+
go-version-file: go.mod
15+
cache: true
16+
- run: make all
17+
- uses: dominikh/staticcheck-action@v1.3.1
18+
with:
19+
version: "2023.1.7"
20+
install-go: false
21+
- name: Verify repo is up-to-date
22+
run: |
23+
if [ -n "$(git status --porcelain)" ]; then
24+
echo 'Updates required:'
25+
git diff
26+
exit 1
27+
fi
28+
29+
run-tests:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-go@v5
34+
with:
35+
go-version-file: go.mod
36+
cache: true
37+
- name: Run tests
38+
run: make test
File renamed without changes.

0 commit comments

Comments
 (0)