Bump github.com/onsi/ginkgo/v2 from 2.13.1 to 2.17.2 #7120
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
# Copyright © 2021 - 2023 SUSE LLC | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- '.goreleaser.yml' | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- '.goreleaser.yml' | |
env: | |
SETUP_GO_VERSION: '1.20.4' | |
GOLANGCI_LINT_VERSION: v1.52 | |
GINKGO_NODES: 8 | |
INGRESS_CONTROLLER: traefik | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 5 | |
with: | |
cache: false | |
go-version: ${{ env.SETUP_GO_VERSION }} | |
- name: Setup Ginkgo Test Framework | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.11.0 | |
- name: Lint Epinio | |
uses: golangci/golangci-lint-action@v3.7.0 | |
timeout-minutes: 10 | |
with: | |
version: ${{ env.GOLANGCI_LINT_VERSION }} | |
args: --timeout=10m --skip-files docs.go | |
skip-cache: true | |
- name: Unit Tests | |
run: make test | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: unittests | |
path: ./coverprofile.out | |
acceptance-cli: | |
needs: | |
- linter | |
runs-on: [self-hosted, epinio] | |
env: | |
GOCOVERDIR: /tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 5 | |
with: | |
cache: false | |
go-version: ${{ env.SETUP_GO_VERSION }} | |
- name: Setup Ginkgo Test Framework | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.11.0 | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/tools | |
key: ${{ runner.os }}-tools | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Install Tools | |
run: make tools-install | |
- name: Add Tools to PATH | |
run: | | |
echo "`pwd`/output/bin" >> $GITHUB_PATH | |
- name: CLI Acceptance Tests | |
env: | |
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |
EPINIO_TIMEOUT_MULTIPLIER: 3 | |
run: | | |
rm -f /tmp/cov* | |
make acceptance-cluster-setup | |
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig | |
make install-cert-manager | |
make prepare_environment_k3d | |
make test-acceptance-cli-other | |
scripts/collect-coverage.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-cli | |
path: ./coverprofile.out | |
- name: Cleanup k3d cluster | |
if: always() | |
run: make acceptance-cluster-delete | |
- name: Clean all | |
if: ${{ github.event_name == 'schedule' }} | |
uses: colpal/actions-clean@v1 | |
acceptance-cli-apps: | |
needs: | |
- linter | |
runs-on: [self-hosted, epinio] | |
env: | |
GOCOVERDIR: /tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 5 | |
with: | |
cache: false | |
go-version: ${{ env.SETUP_GO_VERSION }} | |
- name: Setup Ginkgo Test Framework | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.11.0 | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/tools | |
key: ${{ runner.os }}-tools | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Install Tools | |
run: make tools-install | |
- name: Add Tools to PATH | |
run: | | |
echo "`pwd`/output/bin" >> $GITHUB_PATH | |
- name: CLI Acceptance Tests | |
env: | |
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |
EPINIO_TIMEOUT_MULTIPLIER: 3 | |
PRIVATE_REPO_IMPORT_PAT: ${{ secrets.PRIVATE_REPO_IMPORT_PAT }} | |
run: | | |
rm -f /tmp/cov* | |
make acceptance-cluster-setup | |
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig | |
make install-cert-manager | |
make prepare_environment_k3d | |
make test-acceptance-cli-apps | |
scripts/collect-coverage.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-cli-apps | |
path: ./coverprofile.out | |
- name: Cleanup k3d cluster | |
if: always() | |
run: make acceptance-cluster-delete | |
- name: Clean all | |
if: ${{ github.event_name == 'schedule' }} | |
uses: colpal/actions-clean@v1 | |
acceptance-cli-services: | |
needs: | |
- linter | |
runs-on: [self-hosted, epinio] | |
env: | |
GOCOVERDIR: /tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 5 | |
with: | |
cache: false | |
go-version: ${{ env.SETUP_GO_VERSION }} | |
- name: Setup Ginkgo Test Framework | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.11.0 | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/tools | |
key: ${{ runner.os }}-tools | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Install Tools | |
run: make tools-install | |
- name: Add Tools to PATH | |
run: | | |
echo "`pwd`/output/bin" >> $GITHUB_PATH | |
- name: CLI Acceptance Tests | |
env: | |
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |
EPINIO_TIMEOUT_MULTIPLIER: 3 | |
run: | | |
rm -f /tmp/cov* | |
make acceptance-cluster-setup | |
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig | |
make install-cert-manager | |
make prepare_environment_k3d | |
make test-acceptance-cli-services | |
scripts/collect-coverage.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-cli-services | |
path: ./coverprofile.out | |
- name: Cleanup k3d cluster | |
if: always() | |
run: make acceptance-cluster-delete | |
- name: Clean all | |
if: ${{ github.event_name == 'schedule' }} | |
uses: colpal/actions-clean@v1 | |
acceptance-api: | |
needs: | |
- linter | |
- acceptance-api-services | |
runs-on: [self-hosted, epinio] | |
env: | |
GOCOVERDIR: /tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 5 | |
with: | |
cache: false | |
go-version: ${{ env.SETUP_GO_VERSION }} | |
- name: Setup Ginkgo Test Framework | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.11.0 | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/tools | |
key: ${{ runner.os }}-tools | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Install Tools | |
run: make tools-install | |
- name: Add Tools to PATH | |
run: | | |
echo "`pwd`/output/bin" >> $GITHUB_PATH | |
- name: API Acceptance Tests | |
env: | |
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |
EPINIO_TIMEOUT_MULTIPLIER: 3 | |
run: | | |
rm -f /tmp/cov* | |
make acceptance-cluster-setup | |
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig | |
make install-cert-manager | |
make prepare_environment_k3d | |
make test-acceptance-api-other | |
scripts/collect-coverage.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-api | |
path: ./coverprofile.out | |
- name: Cleanup k3d cluster | |
if: always() | |
run: make acceptance-cluster-delete | |
- name: Clean all | |
if: ${{ github.event_name == 'schedule' }} | |
uses: colpal/actions-clean@v1 | |
acceptance-api-apps: | |
needs: | |
- linter | |
- acceptance-cli-services | |
runs-on: [self-hosted, epinio] | |
env: | |
GOCOVERDIR: /tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 5 | |
with: | |
cache: false | |
go-version: ${{ env.SETUP_GO_VERSION }} | |
- name: Setup Ginkgo Test Framework | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.11.0 | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/tools | |
key: ${{ runner.os }}-tools | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Install Tools | |
run: make tools-install | |
- name: Add Tools to PATH | |
run: | | |
echo "`pwd`/output/bin" >> $GITHUB_PATH | |
- name: API Acceptance Tests | |
env: | |
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |
EPINIO_TIMEOUT_MULTIPLIER: 3 | |
run: | | |
rm -f /tmp/cov* | |
make acceptance-cluster-setup | |
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig | |
make install-cert-manager | |
make prepare_environment_k3d | |
make test-acceptance-api-apps | |
scripts/collect-coverage.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-api-apps | |
path: ./coverprofile.out | |
- name: Cleanup k3d cluster | |
if: always() | |
run: make acceptance-cluster-delete | |
- name: Clean all | |
if: ${{ github.event_name == 'schedule' }} | |
uses: colpal/actions-clean@v1 | |
acceptance-api-cep-different-k8s: | |
needs: | |
- linter | |
runs-on: [self-hosted, epinio] | |
env: | |
GOCOVERDIR: /tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 5 | |
with: | |
cache: false | |
go-version: ${{ env.SETUP_GO_VERSION }} | |
- name: Setup Ginkgo Test Framework | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.11.0 | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/tools | |
key: ${{ runner.os }}-tools | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Install Tools | |
run: make tools-install | |
- name: Add Tools to PATH | |
run: | | |
echo "`pwd`/output/bin" >> $GITHUB_PATH | |
- name: API Acceptance Tests on LATEST K3S version | |
env: | |
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |
EPINIO_TIMEOUT_MULTIPLIER: 3 | |
run: | | |
rm -f /tmp/cov* | |
export K3S_KIND=latest | |
make acceptance-cluster-setup-several-k8s-versions | |
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig | |
make install-cert-manager | |
make prepare_environment_k3d | |
make test-acceptance-api-apps-critical-endpoints | |
scripts/collect-coverage.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-api-apps | |
path: ./coverprofile.out | |
- name: Cleanup k3d cluster | |
if: always() | |
run: make acceptance-cluster-delete | |
- name: API Acceptance Tests on OLDEST K3S version | |
env: | |
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |
EPINIO_TIMEOUT_MULTIPLIER: 3 | |
run: | | |
rm -f /tmp/cov* | |
export K3S_KIND=oldest | |
make acceptance-cluster-setup-several-k8s-versions | |
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig | |
make install-cert-manager | |
make prepare_environment_k3d | |
make test-acceptance-api-apps-critical-endpoints | |
scripts/collect-coverage.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-api-apps | |
path: ./coverprofile.out | |
- name: Cleanup k3d cluster | |
if: always() | |
run: make acceptance-cluster-delete | |
- name: Clean all | |
if: ${{ github.event_name == 'schedule' }} | |
uses: colpal/actions-clean@v1 | |
acceptance-api-services: | |
needs: | |
- linter | |
runs-on: [self-hosted, epinio] | |
env: | |
GOCOVERDIR: /tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 5 | |
with: | |
cache: false | |
go-version: ${{ env.SETUP_GO_VERSION }} | |
- name: Setup Ginkgo Test Framework | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.11.0 | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/tools | |
key: ${{ runner.os }}-tools | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Install Tools | |
run: make tools-install | |
- name: Add Tools to PATH | |
run: | | |
echo "`pwd`/output/bin" >> $GITHUB_PATH | |
- name: API Acceptance Tests | |
env: | |
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |
EPINIO_TIMEOUT_MULTIPLIER: 3 | |
run: | | |
rm -f /tmp/cov* | |
make acceptance-cluster-setup | |
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig | |
make install-cert-manager | |
make prepare_environment_k3d | |
make test-acceptance-api-services | |
scripts/collect-coverage.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-api-services | |
path: ./coverprofile.out | |
- name: Cleanup k3d cluster | |
if: always() | |
run: make acceptance-cluster-delete | |
- name: Clean all | |
if: ${{ github.event_name == 'schedule' }} | |
uses: colpal/actions-clean@v1 | |
acceptance-apps: | |
needs: | |
- linter | |
- acceptance-cli | |
runs-on: [self-hosted, epinio] | |
env: | |
GOCOVERDIR: /tmp | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
timeout-minutes: 5 | |
with: | |
cache: false | |
go-version: ${{ env.SETUP_GO_VERSION }} | |
- name: Setup Ginkgo Test Framework | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.11.0 | |
- name: Cache Tools | |
uses: actions/cache@v3 | |
with: | |
path: ${{ github.workspace }}/tools | |
key: ${{ runner.os }}-tools | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Install Tools | |
run: make tools-install | |
- name: Add Tools to PATH | |
run: | | |
echo "`pwd`/output/bin" >> $GITHUB_PATH | |
- name: Apps Acceptance Tests | |
env: | |
REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} | |
EPINIO_TIMEOUT_MULTIPLIER: 5 | |
run: | | |
rm -f /tmp/cov* | |
make acceptance-cluster-setup | |
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig | |
make install-cert-manager | |
make prepare_environment_k3d | |
make test-acceptance-apps | |
scripts/collect-coverage.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: acceptance-apps | |
path: ./coverprofile.out | |
- name: Failure Logs | |
if: failure() | |
run: | | |
mkdir -p tmp | |
kubectl get -A pod,service,ingress -o json > tmp/cluster.json | |
kubectl get -A events > tmp/events.log | |
docker logs k3d-epinio-acceptance-server-0 &> tmp/k3s.log | |
docker exec k3d-epinio-acceptance-server-0 sh -c 'cd /var/log/containers; grep -r "." .' > tmp/containers.log | |
- name: Upload Logs | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: acceptance-logs-${{ github.sha }}-${{ github.run_id }} | |
path: | | |
tmp/*.json | |
tmp/*.log | |
retention-days: 2 | |
- name: Cleanup k3d cluster | |
if: always() | |
run: make acceptance-cluster-delete | |
- name: Clean all | |
if: ${{ github.event_name == 'schedule' }} | |
uses: colpal/actions-clean@v1 | |
upload-coverage: | |
needs: | |
- acceptance-api | |
- acceptance-api-apps | |
- acceptance-apps | |
- acceptance-cli-apps | |
runs-on: [self-hosted, epinio] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
- name: Upload unittests coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
name: codecov-epinio | |
files: ./unittests/coverprofile.out | |
flags: unittests | |
verbose: true | |
fail_ci_if_error: true | |
- name: Upload acceptance-api coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
name: codecov-epinio | |
files: ./acceptance-api/coverprofile.out,./acceptance-api-apps/coverprofile.out,./acceptance-api-services/coverprofile.out | |
flags: acceptance-api | |
verbose: true | |
fail_ci_if_error: true | |
- name: Upload acceptance-cli coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
name: codecov-epinio | |
files: ./acceptance-cli/coverprofile.out,./acceptance-cli-apps/coverprofile.out,./acceptance-cli-services/coverprofile.out | |
flags: acceptance-cli | |
verbose: true | |
fail_ci_if_error: true | |
- name: Upload acceptance-apps coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
name: codecov-epinio | |
files: ./acceptance-apps/coverprofile.out | |
flags: acceptance-apps | |
verbose: true | |
fail_ci_if_error: true |