Skip to content

🌱 Replace hand-written test mocks with gomock-generated mocks #10284

🌱 Replace hand-written test mocks with gomock-generated mocks

🌱 Replace hand-written test mocks with gomock-generated mocks #10284

Workflow file for this run

name: e2e
on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches:
- main
env:
SUPPORT_BUNDLE_VERSION: v0.129.1
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test:
- name: extension-developer-e2e
make-target: test-extension-developer-e2e
use-artifacts: false
use-codecov: false
- name: e2e
make-target: test-e2e
use-artifacts: true
use-codecov: true
- name: experimental-e2e
make-target: test-experimental-e2e
use-artifacts: true
use-codecov: true
- name: upgrade-st2st-e2e
make-target: test-upgrade-st2st-e2e
use-artifacts: true
use-codecov: false
- name: upgrade-st2ex-e2e
make-target: test-upgrade-st2ex-e2e
use-artifacts: true
use-codecov: false
- name: st2ex-e2e
make-target: test-st2ex-e2e
use-artifacts: true
use-codecov: false
name: ${{ matrix.test.name }}
steps:
- uses: actions/checkout@v6.0.3
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Install support-bundle
if: matrix.test.use-artifacts == true
run: |
curl -sL https://github.com/replicatedhq/troubleshoot/releases/download/${{ env.SUPPORT_BUNDLE_VERSION }}/support-bundle_linux_amd64.tar.gz | tar xz -C /usr/local/bin support-bundle
support-bundle version
- name: Run e2e test
run: |
if [[ "${{ matrix.test.use-artifacts }}" == "true" ]]; then
ARTIFACT_PATH=/tmp/artifacts E2E_SUMMARY_OUTPUT=$GITHUB_STEP_SUMMARY make ${{ matrix.test.make-target }}
else
make ${{ matrix.test.make-target }}
fi
- name: Collect support-bundle
if: failure() && matrix.test.use-artifacts == true
run: |
if kubectl cluster-info &>/dev/null; then
mkdir -p /tmp/artifacts
support-bundle --interactive=false -o /tmp/artifacts/support-bundle test/e2e/support-bundle.yaml
else
echo "No cluster available, skipping support-bundle collection"
fi
- uses: actions/upload-artifact@v7
if: failure() && matrix.test.use-artifacts == true
with:
name: ${{ matrix.test.name }}-artifacts
path: /tmp/artifacts/
- uses: codecov/codecov-action@v6.0.1
if: matrix.test.use-codecov == true
with:
disable_search: true
files: coverage/${{ matrix.test.name }}.out
flags: ${{ matrix.test.name }}
token: ${{ secrets.CODECOV_TOKEN }}