Updated CI workflow to run on PR label/unlabel

- We have browser tests which only run if the browser tests flag is added to the PR
- The label has to be present on PR creation, which is hard to remember/doesn't fit with various workflows
- The default type of action for the pull_request trigger are opened, synchronize, reopened
- This PR adds labeled and unlabeled to those, which I think will help us to run the tests as expected
- The expectation is that adding the browser test label will now trigger the tests to run
This commit is contained in:
Hannah Wolfe 2024-08-29 09:24:37 +01:00
parent 8e1a730731
commit 2720791434
No known key found for this signature in database
GPG Key ID: AB586C3B5AE5C037

View File

@ -1,6 +1,7 @@
name: CI
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
push:
branches:
- main