Skip to content

Commit

Permalink
Add daily release-binaries build
Browse files Browse the repository at this point in the history
  • Loading branch information
killianmuldoon committed Mar 1, 2023
1 parent ef2c921 commit 368e2c8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint-docs-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Weekly check all Markdown links

on:
schedule:
# Cron for every Thursday at 12:00 UTC.
- cron: "0 12 * * 4"

# Remove all permissions from GITHUB_TOKEN except metadata.
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/test-release-weekly.yml
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

0 comments on commit 368e2c8

Please sign in to comment.