Add option to skip install of plugins #446
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 BATS | |
on: | |
push: | |
branches: | |
- master | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- 'website/**' | |
- 'assets/**' | |
- 'backup/**' | |
- '*.md' | |
pull_request: | |
types: [opened, synchronize, ready_for_review, reopened] | |
paths-ignore: | |
- 'docs/**' | |
- 'website/**' | |
- 'assets/**' | |
- 'backup/**' | |
- '*.md' | |
#TODO: create a matrix per earch bats file | |
jobs: | |
run-tests: | |
if: github.event.pull_request.draft == false | |
name: BATS Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up env vars | |
run: | | |
echo "GO111MODULE=on" >> $GITHUB_ENV | |
echo "GO_VERSION=v$(sed -n 's/GO_VERSION=//p' config.base.env | tr -d '\n' | tr -d '"')" >> $GITHUB_ENV | |
echo "HELM_VERSION=v$(sed -n 's/HELM_VERSION=//p' config.base.env | tr -d '\n' | tr -d '"')" >> $GITHUB_ENV | |
echo "KIND_CLUSTER_NAME=$(sed -n 's/KIND_CLUSTER_NAME=//p' config.base.env | tr -d '\n' | tr -d '"')" >> $GITHUB_ENV | |
echo "GOPATH=/home/runner/go" >> $GITHUB_ENV | |
- name: Prepare go environment | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Ensure Golang runtime dependencies | |
run: make go-dependencies | |
- name: Setup Bats and libs | |
uses: bats-core/[email protected] | |
with: | |
support-path: "${{ github.workspace }}/.bats/bats-support" | |
assert-path: "${{ github.workspace }}/.bats/bats-assert" | |
detik-path: "${{ github.workspace }}/.bats/bats-detik" | |
file-path: "${{ github.workspace }}/.bats/bats-file" | |
- name: Kind setup | |
uses: helm/[email protected] | |
with: | |
cluster_name: ${{env.KIND_CLUSTER_NAME}} | |
- name: Jenkins Operator - bats tests | |
env: | |
BATS_LIB_PATH: "${{ github.workspace }}/.bats" | |
run: make bats-tests |