-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 999 Bytes
/
ci.yaml
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
34
35
36
37
38
39
40
41
42
name: ci
on:
push:
branches: [ "master" ]
pull_request:
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22.0
- name: Install Gio Dependencies
run: |
sudo apt update
sudo apt install gcc pkg-config libwayland-dev libx11-dev libx11-xcb-dev libxkbcommon-x11-dev libgles2-mesa-dev libegl1-mesa-dev libffi-dev libxcursor-dev libvulkan-dev
- run: go install golang.org/x/tools/cmd/goimports@latest
- run: go install honnef.co/go/tools/cmd/staticcheck@latest
- run: go install mvdan.cc/gofumpt@latest
- name: Format and check
run: |
goimports -w .
gofumpt -w .
if [ -n "$(git diff)" ]; then
git diff
exit 1
fi
- run: go build -v ./...
- run: go test -v ./...
- run: go vet -v ./...
- run: staticcheck ./...