Skip to content

fix(deps): update google.golang.org/genproto/googleapis/rpc digest to ec0a776 #1232

fix(deps): update google.golang.org/genproto/googleapis/rpc digest to ec0a776

fix(deps): update google.golang.org/genproto/googleapis/rpc digest to ec0a776 #1232

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.x"
- name: Run pre-commit hooks
run: |
python -m pip install --upgrade pip
python -m pip install pre-commit==4.5.1
pre-commit run --all-files --show-diff-on-failure
test:
name: Go tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- name: Run tests
run: go test ./...
coverage:
name: Go coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- name: Generate coverage
run: go test -coverprofile=coverage.out ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
flags: go
name: go-coverage
fail_ci_if_error: true
- name: Upload coverage artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: coverage
path: coverage.out
if-no-files-found: error
build:
name: Go build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- name: Build commands
run: go build ./cmd/...
helm:
name: Helm validation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Helm
uses: ./.github/actions/setup-helm
- name: Build chart dependencies
run: |
helm dependency build charts/ext-authz-token-exchange
helm dependency build charts/keycloak
- name: Lint production chart
run: helm lint charts/ext-authz-token-exchange
- name: Lint e2e chart
run: helm lint charts/ext-authz-token-exchange-e2e
- name: Lint Keycloak chart
run: helm lint charts/keycloak
- name: Render manifests
run: |
mkdir -p artifacts/manifests
helm template ext-authz-token-exchange charts/ext-authz-token-exchange \
--namespace ext-authz-token-exchange \
> artifacts/manifests/ext-authz-token-exchange.yaml
helm template ext-authz-token-exchange-e2e charts/ext-authz-token-exchange-e2e \
--namespace ext-authz-token-exchange-e2e \
> artifacts/manifests/ext-authz-token-exchange-e2e.yaml
- name: Verify GKE platform and app renders
run: ./scripts/verify-gke-deployment-model.sh
- name: Upload rendered manifests
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: rendered-manifests
path: artifacts/manifests
if-no-files-found: error