issue 3: get docker release up and running #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | ||
on: [push, workflow_dispatch, pull_request] | ||
env: | ||
KIND_VERSION: "v0.23.0" | ||
BATS_VERSION: "1.11.0" | ||
NODE_VERSION: "19.9.0" | ||
TARBALL_FILE: openbao-csi-provider.docker.tar | ||
jobs: | ||
copyright: | ||
uses: hashicorp/vault-workflows-common/.github/workflows/copyright-headers.yaml@main | ||
go-checks: | ||
uses: hashicorp/vault-workflows-common/.github/workflows/go-checks.yaml@main | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | ||
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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | ||
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@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: openbao-csi-provider-image | ||
path: ${{ env.TARBALL_FILE }} | ||
integration-test: | ||
needs: | ||
- lint | ||
- test | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
kind-k8s-version: [1.27.13, 1.28.9, 1.29.4] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.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@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.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@ #65a9edc5881444af0b9093a5e628f2fe47ea3b2e v4.1.7 | ||
Check failure on line 78 in .github/workflows/tests.yaml GitHub Actions / TestsInvalid workflow file
|
||
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 |