Merge pull request #255 from kubernetes-sigs/dependabot/go_modules/et… #350
This file contains hidden or 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: bats | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v*' | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
env: | |
GO_VERSION: "1.24" | |
K8S_VERSION: "v1.33.1" | |
KIND_VERSION: "v0.29.0" | |
IMAGE_NAME: registry.k8s.io/networking/kube-network-policies | |
KIND_CLUSTER_NAME: kind | |
jobs: | |
bats_tests: | |
runs-on: ubuntu-22.04 | |
name: Bats e2e tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup Bats and bats libs | |
id: setup-bats | |
uses: bats-core/[email protected] | |
- name: Bats tests | |
shell: bash | |
env: | |
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} | |
TERM: xterm | |
run: bats -o _artifacts --print-output-on-failure tests/ | |
- name: Upload logs | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: kind-logs-${{ env.JOB_NAME }}-${{ github.run_id }} | |
path: ./_artifacts | |