31 lines
566 B
YAML
31 lines
566 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: golang
|
|
container:
|
|
image: golang:1.25
|
|
env:
|
|
GOPRIVATE: forgejo.riotpiao.com
|
|
GOFLAGS: -mod=readonly
|
|
GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Download dependencies
|
|
run: go mod download
|
|
|
|
- name: Test
|
|
run: go test -v ./...
|
|
|
|
- name: Build
|
|
run: go build -o /tmp/poimen-workflows ./cmd/...
|
|
|
|
- name: Vet
|
|
run: go vet ./...
|