Add Gitea CI/CD workflows and Dockerfile (#1)
Build / build-and-push (push) Successful in 1m34s
Build / build-and-push (push) Successful in 1m34s
Co-authored-by: Aneurin Barker Snook <aneurin@aneur.in>
This commit was merged in pull request #1.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
go-tests:
|
||||
runs-on: ubuntu-latest
|
||||
container: golang:1.25-alpine
|
||||
steps:
|
||||
# actions/checkout is a JS action -- golang:1.25-alpine has no node on
|
||||
# PATH by default, so install it (musl-native, no glibc/Alpine mismatch)
|
||||
# before any step that needs it.
|
||||
- name: Install Node
|
||||
run: apk add --no-cache nodejs
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Verify dependencies
|
||||
run: go mod verify
|
||||
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: Build
|
||||
run: go build ./...
|
||||
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
|
||||
- name: Audit dependencies
|
||||
run: |
|
||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
"$(go env GOPATH)/bin/govulncheck" ./...
|
||||
Reference in New Issue
Block a user