Merge pull request #166 from kubernetes-sigs/dependabot/github_action… #255
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
name: Snapshot | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
snapshot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code onto GOPATH | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: '1.20' | |
check-latest: true | |
- name: Install GoReleaser | |
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 | |
with: | |
install-only: true | |
- name: Install bom | |
uses: puerco/release-actions/setup-bom@6c88cda6495b4415966e61f20798fb96a9081397 # main | |
- name: Run Mage | |
uses: magefile/mage-action@6a5dcb5fe61f43d7c08a98bc3cf9bc63c308c08e # v3.0.0 | |
with: | |
version: latest | |
args: buildBinariesSnapshot | |
- name: check binary | |
run: ./dist/tejolote-amd64-linux version |