Skip to content

Commit

Permalink
.github: presubmit job to verify if go and toolchain directives are v…
Browse files Browse the repository at this point in the history
…alid

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
  • Loading branch information
MadhavJivrajani committed May 2, 2024
1 parent 870b308 commit e284a89
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/verify-go-versions.yaml
@@ -0,0 +1,16 @@
---
name: Verify Go Versions
permissions: read-all
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- id: goversion
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ steps.goversion.outputs.goversion }}
- id: verifytoolchain
run: make verify-go-versions

0 comments on commit e284a89

Please sign in to comment.