Skip to content

templates/gateway: fix filter indenting #64

templates/gateway: fix filter indenting

templates/gateway: fix filter indenting #64

Workflow file for this run

name: tests
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
kube-linter:
name: "πŸŽ€ kube-linter"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: redhat-actions/oc-installer@v1
- name: Process template
run: |
mkdir processed-templates
oc process -f templates/gateway.yml \
-p IMAGE_TAG=image_tag \
--local \
-o yaml > processed-templates/gateway.yml
- uses: stackrox/[email protected]
with:
directory: processed-templates
config: templates/.kube-linter-config.yml
version: v0.6.5
golang-tests:
name: "πŸ›ƒ Checks"
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/[email protected]
with:
go-version: 1.19
id: go
- name: Check out code into the Go module directory
uses: actions/[email protected]
- name: Check that source has been prepared
working-directory: oidc-authorizer
run: |
./tools/prepare-source.sh
if [ -n "$(git status --porcelain)" ]; then
echo
echo "Please include these changes in your branch: "
git status -vv
exit "1"
else
exit "0"
fi
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
working-directory: oidc-authorizer
version: v1.50.1
- name: Run unit tests
working-directory: oidc-authorizer
run: go test -v -race -covermode=atomic -coverprofile=coverage.txt -coverpkg=./... ./...