fix: add authorizationGroups property to K8s SAR authorization, fixes #506 #1665
Workflow file for this run
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: Unit Tests | |
on: | |
push: | |
branches: [ 'main', 'master' ] | |
pull_request: | |
branches: [ 'main', 'master' ] | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
strategy: | |
matrix: | |
go-version: [1.21.x] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Set up Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
id: go | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Check uncommitted file changes | |
run: | | |
make generate manifests | |
clean=$(git status --porcelain) | |
if [[ -z "$clean" ]]; then | |
echo "Empty git status --porcelain: $clean" | |
else | |
echo "Uncommitted file changes detected: $clean" | |
git diff | |
exit 1 | |
fi | |
- name: Run make test | |
run: | | |
make test | |
- name: Run test benchmarks | |
run: | | |
make benchmarks |