Skip to content

Commit 7ec2f72

Browse files
committed
github_actions: run tests only on labels
When a github PR is made, the unit tests will start only after a maintainer labels the PR with 'ready-for-unit-testing' label. Change-Id: I672843926f68c232907d603d91064422e414970e
1 parent 6b2372d commit 7ec2f72

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/unit_tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Cloudbase-Init unit tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
types: [ labeled ]
47

58
jobs:
69
build:
10+
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'ready-for-unit-testing') }}
711
runs-on: ubuntu-22.04
812
strategy:
913
matrix:

0 commit comments

Comments
 (0)