Skip to content

Commit

Permalink
update e2e workflow to be more specific
Browse files Browse the repository at this point in the history
Signed-off-by: Manabu McCloskey <[email protected]>
  • Loading branch information
nabuskey committed Nov 27, 2024
1 parent 3061181 commit 22adab9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,37 @@ on:
- 'go.mod'
repository_dispatch:
types: [e2e-command]

jobs:
e2e:
runs-on: ubuntu-22.04
if: ${{ github.event.ref != '' }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: '1.22'
- name: Run tests
run: |
make e2e
# invoked by slash command workflow
e2e-slash-command:
runs-on: ubuntu-22.04
if: ${{ github.event.action == 'e2e-command' }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.ref }}
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: '1.22'
- name: Run tests
run: |
make e2e

0 comments on commit 22adab9

Please sign in to comment.