forgejo-runner-optimiser/.github/workflows/ci.yaml
Manuel Ganter d6cf8e5f39
Some checks failed
ci / build (push) Successful in 1m20s
ci / goreleaser (push) Failing after 57s
fix(ci): unset GITHUB_TOKEN via shell before running goreleaser
2026-02-04 14:57:56 +01:00

39 lines
743 B
YAML

name: ci
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
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@v5
with:
install-only: true
- name: GoReleaser Check
run: |
unset GITHUB_TOKEN
goreleaser release --snapshot --skip=publish --clean
env:
GORELEASER_CURRENT_TAG: v0.0.0