Skip to content

Feature/move rorresourceowner to separate package #22

Feature/move rorresourceowner to separate package

Feature/move rorresourceowner to separate package #22

Workflow file for this run

name: Generate and test
on:
pull_request:
branches:
- main
paths:
- 'pkg/**'
jobs:
build-app:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
#TODO: Check if generator needs to be run, fail if the generator generates new files
- name: run generator
run: |
echo running generator...
go run cmd/generator/main.go
git diff --exit-code --numstat pkg/
if [ $? -ne 0 ]; then
echo "Generator generated new files, please run the generator locally and commit the changes"
exit 1
fi
- name: Test
run: |
echo testing...
go get -t ./...
go vet ./...
go test -v ./...