forgejo-runner-sizer/.github/workflows/ci.yaml
Patrick Sy 8e095e2fcd
Some checks failed
ci / ci (push) Failing after 0s
fix: Added missing docker coordinates
2026-02-17 16:48:28 +01:00

47 lines
1.1 KiB
YAML

name: ci
on:
push:
branches:
- main
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Lint
run: make lint
- name: Test
run: make test
- name: Install GoReleaser
uses: https://github.com/goreleaser/goreleaser-action@v6
with:
install-only: true
- name: Sanitize Docker credentials
run: |
echo "registry=${{ forgejo.server_url#https:// }}" >> "$GITHUB_OUTPUT"
echo "org=$(echo '${{ forgejo.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
id: sanitize_credentials
- name: GoReleaser Check
run: |
unset GITHUB_TOKEN
goreleaser release --snapshot --skip=publish --clean
env:
GORELEASER_CURRENT_TAG: v0.0.0
DOCKER_REGISTRY: ${{ steps.sanitize_credentials.outputs.registry }}
DOCKER_ORG: ${{ steps.sanitize_credentials.outputs.org }}