chore!: make minio client optional and improve initialization #383
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: Knuu Testing | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
merge_group: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- pkg: "./pkg/..." | |
timeout: 10m | |
- pkg: "./e2e/basic" | |
timeout: 15m | |
- pkg: "./e2e/system" | |
timeout: 15m | |
- pkg: "./e2e/bittwister" | |
timeout: 60m | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.22.1 | |
uses: actions/[email protected] | |
with: | |
go-version: 1.22.1 | |
- name: Check out code into the Go module directory | |
uses: actions/[email protected] | |
- name: Setup kubeconfig | |
env: | |
KUBECONFIG_FILE: ${{ secrets.KNUU_KUBECONFIG_FILE }} | |
run: | | |
mkdir -p $HOME/.kube | |
echo "${KUBECONFIG_FILE}" > $HOME/.kube/config | |
- name: Run Tests | |
run: make test pkgs=${{ matrix.pkg }} timeout=${{ matrix.timeout }} | |
env: | |
KNUU_SKIP_CLEANUP: "false" | |
KNUU_TIMEOUT: "${{ matrix.timeout }}" | |
GRAFANA_ENDPOINT: ${{ secrets.GRAFANA_ENDPOINT }} | |
GRAFANA_USERNAME: ${{ secrets.GRAFANA_USERNAME }} | |
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }} |