🌱 Add go-version check to avoid upgrade versions for those that we cannot support yet #6234
This file contains hidden or 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: unit | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
merge_group: | |
issue_comment: | |
types: [created] # Triggers the workflow when a comment is created. see `if` section | |
jobs: | |
unit: | |
if: >- | |
github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: Run unit tests | |
run: make unit |