Skip to content

refactor: upgrade to [email protected]

refactor: upgrade to [email protected] #91

Workflow file for this run

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 ./...