This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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 ./...
|
||||
Reference in New Issue
Block a user