Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ permissions:
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod

- uses: goreleaser/goreleaser-action@v6
- uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: '~> v2'
Expand Down
25 changes: 19 additions & 6 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,28 @@
name: Validate

on:
# Post-merge validation only. Feature branches are validated by their
# pull_request run, so a branch push with an open PR no longer triggers
# a duplicate (previously cancelled) push run.
push:
# Always run when there are new commits
branches:
- '**'
# Always run when there are pull requests
- master
# All pull requests.
pull_request:
branches:
- '**'

# Least-privilege token; the validate workflow only needs to read the repo.
permissions:
contents: read

# A push and its pull_request both trigger this workflow on the same
# branch. Group them so only one full matrix runs, and cancel runs that
# are superseded by a newer commit on the same branch/PR.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
build:
name: Validate on ${{ matrix.os }}
Expand All @@ -22,13 +35,13 @@ jobs:

timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod

- run: go test ./...
- run: go build ./cmd/desync
- run: go build -o cmd/desync/ ./cmd/desync

- name: Race detector
if: runner.os == 'Linux'
Expand Down
Loading