Skip to content

ci: Add PR test for running goreleaser snapshot #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/goreleaser-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This is used to test changes to goreleaser-related files.
# It should never publish. Publishing should be handled in the `tag.yml` action
name: Goreleaser snapshot

on:
pull_request:
paths:
- .goreleaser.yml
- build/Dockerfile
- .github/workflows/goreleaser-snapshot.yml

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Create snapshot
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --snapshot --rm-dist