Skip to content

Commit

Permalink
CI improvements
Browse files Browse the repository at this point in the history
Signed-off-by: shimritproj <[email protected]>
  • Loading branch information
shimritproj committed Nov 6, 2023
1 parent da389cb commit 99510af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 33 deletions.
42 changes: 10 additions & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI

on:
push:
branches: [main]
merge_group:
pull_request:
branches:
Expand Down Expand Up @@ -169,22 +171,10 @@ jobs:
export KUBECONFIG=${HOME}/.kube/config
make test-validation
make test-e2e
- name: Archive E2E Tests logs
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: test_e2e_logs
path: /tmp/test_e2e_logs/
- name: Export kind logs
if: ${{ failure() }}
run: |
kind export logs /tmp/kind_logs
- name: Archive kind logs
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: kind_logs
path: /tmp/kind_logs
- name: Checkout
uses: actions/checkout@v2
- name: Collect Logs
uses: ./.github/workflows/composite/collectlogs

- name: Checkout Latest Metal LB Operator
uses: actions/checkout@v2
Expand Down Expand Up @@ -221,22 +211,10 @@ jobs:
export KUBECONFIG=${HOME}/.kube/config
make test-validation
make test-e2e
- name: Archive E2E Tests logs
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: test_e2e_logs
path: /tmp/test_e2e_logs/
- name: Export kind logs
if: ${{ failure() }}
run: |
kind export logs /tmp/kind_logs
- name: Archive kind logs
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: kind_logs
path: /tmp/kind_logs
- name: Checkout
uses: actions/checkout@v2
- name: Collect Logs
uses: ./.github/workflows/composite/collectlogs
metallb_e2e:
runs-on: ubuntu-20.04
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/composite/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "install-deps"
description: "Install deps required for metallb CI"
description: "Install deps required for metallb-operator CI"

runs:
using: "composite"
Expand Down

0 comments on commit 99510af

Please sign in to comment.