-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef2c921
commit 368e2c8
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Release test | ||
|
||
# Note: This workflow does not build for releases. It attempts to build release binaries daily to ensure the repo | ||
# is in a good state. | ||
|
||
on: | ||
schedule: | ||
# Cron for every Thursday at 12:00 UTC. | ||
- cron: "0 12 * * 5" | ||
|
||
# Remove all permissions from GITHUB_TOKEN except metadata. | ||
permissions: {} | ||
|
||
jobs: | ||
weekly-test-release: | ||
name: Test release | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branch: [ main, release-1.3, release-1.2 ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3.3.0 | ||
with: | ||
ref: ${{ matrix.branch }} | ||
fetch-depth: 0 | ||
- name: Set env | ||
run: echo "RELEASE_TAG=v9.9.9-fake" >> $GITHUB_ENV | ||
- name: Set fake tag for release | ||
run: | | ||
git tag ${{ env.RELEASE_TAG }} | ||
- name: Calculate go version | ||
run: echo "go_version=$(make go-version)" >> $GITHUB_ENV | ||
- name: Set up Go | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # tag=v3.5.0 | ||
with: | ||
go-version: ${{ env.go_version }} | ||
- name: Test release | ||
run: | | ||
make release |