1
0
mirror of https://github.com/taigrr/pastebin synced 2026-04-06 03:12:29 -07:00
Files
pastebin/.github/workflows/ci.yml

41 lines
688 B
YAML

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