Test / test (push) Failing after 19m56s
The act_runner has no actions/cache backend, so setup-go's cache step hangs indefinitely instead of failing. Co-Authored-By: Claude Opus 5 <[email protected]>
35 lines
803 B
YAML
35 lines
803 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
permissions:
|
|
contents: read
|
|
actions: read
|
|
packages: write
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/[email protected]
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.22'
|
|
# The runner has no actions/cache backend; leaving this on hangs the step.
|
|
cache: false
|
|
- run: go vet ./... && go test -race ./...
|
|
|
|
build:
|
|
needs: test
|
|
uses: infras/workflow-templates/.gitea/workflows/docker-template.yml@736cd715b4b9c80f20ec51ef8445cb630c8299f5
|
|
with:
|
|
image_name: byd-exporter
|
|
image_owner: thistine
|
|
image_tag: ${{ gitea.ref_name }}
|
|
secrets:
|
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|