DO NOT MERGE: demonstrating native metrics authn/authz using controller-runtime #7068
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@v5 | |
- uses: actions/setup-go@v6 | |
with: | |
go-version-file: "go.mod" | |
- name: Run unit tests | |
run: make unit |