Files
gitlab-cleanup-handler/.gitea/workflows/ci.yaml
T
argoyle 70fd5d4c72
gitlab-cleanup-handler / vulnerabilities (pull_request) Successful in 1m39s
gitlab-cleanup-handler / test (pull_request) Successful in 2m0s
gitlab-cleanup-handler / build (pull_request) Successful in 3m38s
ci: run workflow on tags
2026-01-10 19:26:28 +01:00

44 lines
1.0 KiB
YAML

name: gitlab-cleanup-handler
on:
push:
branches: [main]
tags: ['*']
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Run tests
run: go test -race -coverprofile=coverage.txt ./...
vulnerabilities:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Check vulnerabilities
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
build:
needs: [test, vulnerabilities]
runs-on: ubuntu-latest
env:
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
GITEA_REPOSITORY: ${{ gitea.repository }}
steps:
- uses: actions/checkout@v6
- uses: buildtool/setup-buildtools-action@v1
- name: Build and push
run: unset GITEA_TOKEN && build && push