-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 729 Bytes
/
ci.yaml
File metadata and controls
34 lines (27 loc) · 729 Bytes
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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23.x"
cache: true
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Go fmt / vet / test / staticcheck
run: |
go fmt ./...
go vet ./...
go test ./...
$(go env GOPATH)/bin/staticcheck ./...
- name: Build container (no push)
run: docker build -t ghcr.io/${{ github.repository }}/gamifykit:ci-${{ github.run_number }} .