33 lines
520 B
YAML
33 lines
520 B
YAML
name: Check Go code
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and test
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '1.25.x'
|
|
|
|
- name: Download dependencies
|
|
run: go mod download
|
|
|
|
- name: Run build
|
|
run: go build ./cmd/anon3anon/
|
|
|
|
- name: Run tests
|
|
run: go test ./...
|