Skip to content

Commit

Permalink
only upload latest e2e results
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Aller <[email protected]>
  • Loading branch information
zachaller committed Jul 23, 2024
1 parent 85ff2ef commit d9adea5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 42 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: E2E Tests
name: Unit and E2E Tests

on:
push:
Expand Down Expand Up @@ -73,22 +73,20 @@ jobs:
with:
name: code-coverage
path: coverage.out
# - name: Upload code coverage information to codecov.io
# uses: codecov/[email protected]
# with:
# file: coverage.out
# fail_ci_if_error: false
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test-e2e:
strategy:
fail-fast: false
matrix:
kubernetes-minor-version:
- 1.26
- 1.27
- 1.28
- 1.29
kubernetes:
- version: 1.26
latest: false
- version: 1.27
latest: false
- version: 1.28
latest: false
- version: 1.29
latest: true
name: Run end-to-end tests
runs-on: ubuntu-latest
steps:
Expand All @@ -99,7 +97,7 @@ jobs:
- uses: actions/checkout@v4
- name: Setup k3s
env:
INSTALL_K3S_CHANNEL: v${{ matrix.kubernetes-minor-version }}
INSTALL_K3S_CHANNEL: v${{ matrix.kubernetes.version }}
run: |
curl -sfL https://get.k3s.io | sh -
sudo mkdir ~/.kube
Expand Down Expand Up @@ -134,20 +132,22 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: E2E Test Results (k8s ${{ matrix.kubernetes-minor-version }})
name: E2E Test Results (k8s ${{ matrix.kubernetes.version }})
path: |
junit.xml
- name: Upload e2e-controller logs
uses: actions/upload-artifact@v4
with:
name: e2e-controller-k8s-${{ matrix.kubernetes-minor-version }}.log
name: e2e-controller-k8s-${{ matrix.kubernetes.version }}.log
path: /tmp/e2e-controller.log
if: ${{ always() }}
- name: Generate code coverage artifacts
- name: Upload code coverage artifacts
uses: actions/upload-artifact@v4
with:
name: coverage-output-e2e
path: coverage-output-e2e
if: ${{ matrix.k3s.latest }}

coverage-process:
name: Run end-to-end tests
runs-on: ubuntu-latest
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,31 +72,6 @@ jobs:
- name: Compile all packages
run: make controller plugin

# - name: Test
# run: make test-unit
#
# - name: Upload Unit Test Results
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: Unit Test Results
# path: |
# junit.xml
#
# - name: Generate code coverage artifacts
# uses: actions/upload-artifact@v4
# with:
# name: code-coverage
# path: coverage.out
#
# - name: Upload code coverage information to codecov.io
# uses: codecov/[email protected]
# with:
# file: coverage.out
# fail_ci_if_error: false
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

codegen:
name: Verify Codegen
runs-on: ubuntu-latest
Expand Down

0 comments on commit d9adea5

Please sign in to comment.