1
0
mirror of https://github.com/taigrr/pastebin synced 2026-04-10 03:51:30 -07:00

ci: add Go test and lint workflow

This commit is contained in:
2026-03-09 05:50:29 +00:00
parent ca6cc45796
commit ffa8738946

40
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.26"]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: |
go build -v ./...
go build -v ./cmd/pb/
- name: Vet
run: go vet ./...
- name: Staticcheck
uses: dominikh/staticcheck-action@v1
with:
version: latest
- name: Test
run: go test -race -v ./...