Skip to content

chore: bump and pin github actions (#246) #341

chore: bump and pin github actions (#246)

chore: bump and pin github actions (#246) #341

Workflow file for this run

name: Tests
on: [push, workflow_dispatch]
jobs:
fmtcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: .go-version
- run: make fmtcheck
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: .go-version
- run: make test
integrationTest:
runs-on: ubuntu-latest
needs: [fmtcheck, test]
strategy:
fail-fast: false
matrix:
kind-k8s-version: [1.24.15, 1.25.11, 1.26.6, 1.27.3, 1.28.0]
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Create K8s Kind Cluster
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
with:
version: v0.20.0
cluster_name: vault-plugin-auth-kubernetes
node_image: kindest/node:v${{ matrix.kind-k8s-version }}
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: .go-version
- run: make setup-integration-test
- env:
INTEGRATION_TESTS: true
run: make integration-test