Skip to content

Commit

Permalink
Add e2e pre label check and modify trigger for e2e
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Jung (VMware) <antheaj@vmware.com>
  • Loading branch information
Anna Jung (VMware) committed Aug 3, 2023
1 parent 06c0769 commit 1389995
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/e2e_test.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: E2E Tests

on:
pull_request:
paths:
- apps/**
- common/**
workflow_run:
workflows: ["E2E Test Pre Label Check"]
types:
- completed

jobs:
e2e:
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
name: AWS
runs-on: ubuntu-20.04

Expand All @@ -18,7 +22,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install juju
run: |
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/e2e_test_pre_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: E2E Test Pre Label Check

on:
pull_request:
paths:
- apps/**
- common/**
types:
- labeled

jobs:
label_check:
if: ${{ github.event.label.name == 'ok-to-test' }}
name: label-check
runs-on: ubuntu-latest
steps:
- run: echo "Pull request contains label ok-to-test"

0 comments on commit 1389995

Please sign in to comment.