Skip to content

Commit

Permalink
Run tests/tests-e2e via make, triggering by label (#34)
Browse files Browse the repository at this point in the history
Proof that it works:
https://github.com/hiddenmarten/etcd-operator/pull/1

After that just changed the name of the label, to the easier one.
  • Loading branch information
hiddenmarten authored Mar 17, 2024
1 parent f06bdb9 commit 55e689c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/make-test-e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Make run tests e2e

on:
pull_request:
types: [labeled]

jobs:
build:
if: ${{ github.event.label.name == 'test ready' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.1
- uses: helm/[email protected]
with:
cluster_name: kind
- run: make test-e2e
16 changes: 16 additions & 0 deletions .github/workflows/make-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Make run tests

on:
pull_request:
types: [labeled]

jobs:
build:
if: ${{ github.event.label.name == 'test ready' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.1
- run: make test

0 comments on commit 55e689c

Please sign in to comment.