Skip to content

chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (#116) #542

chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (#116)

chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 (#116) #542

Workflow file for this run

name: Tests
on: [push, workflow_dispatch, pull_request]
env:
KIND_VERSION: "v0.29.0"
BATS_VERSION: "1.12.0"
NODE_VERSION: "24.2.0"
TARBALL_FILE: openbao-csi-provider.docker.tar
jobs:
go-checks:
uses: hashicorp/vault-workflows-common/.github/workflows/go-checks.yaml@main
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: .go-version
- name: Install tools
run: make bootstrap
- name: Lint
run: make lint GOLANGCI_LINT_FORMAT=github-actions
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: .go-version
- name: Build
run: |
make e2e-image
docker save --output "${TARBALL_FILE}" e2e/openbao-csi-provider:latest
- name: Test
run: make test
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: openbao-csi-provider-image
path: ${{ env.TARBALL_FILE }}
integration-test:
needs:
- lint
- test
strategy:
fail-fast: false
matrix:
kind-k8s-version: [1.33.7, 1.34.3, 1.35.0]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install -g bats@${{ env.BATS_VERSION }}
shell: bash
- run: bats -v
shell: bash
- name: Create Kind Cluster
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0
with:
cluster_name: kind
config: test/bats/configs/kind/config.yaml
node_image: kindest/node:v${{ matrix.kind-k8s-version }}
version: ${{ env.KIND_VERSION }}
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: openbao-csi-provider-image
- name: Load openbao-csi-provider dev image
run: docker image load --input ${{ env.TARBALL_FILE }}
- name: bats tests
timeout-minutes: 15
run: DISPLAY_SETUP_TEARDOWN_LOGS=true make e2e-setup e2e-test e2e-teardown