mirror of
https://github.com/danbulant/jose
synced 2026-05-19 04:18:52 +00:00
ci: full-ci triggers all actions on PRs
This commit is contained in:
parent
82105d6e1f
commit
5309e000d5
1 changed files with 18 additions and 1 deletions
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
|
|
@ -9,10 +9,26 @@ on:
|
|||
paths-ignore:
|
||||
- "**.md"
|
||||
- "tools/**"
|
||||
pull_request_target:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "tools/**"
|
||||
types:
|
||||
- labeled
|
||||
schedule:
|
||||
- cron: 0 11 * * 1-5
|
||||
|
||||
jobs:
|
||||
unlabel:
|
||||
if: ${{ github.event_name == 'pull_request_target' && github.event.label.name == 'full-ci' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: gh pr edit $PR --repo $REPO --remove-label "full-ci"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
PR: ${{ github.event.number }}
|
||||
REPO: ${{ github.event.repository.full_name }}
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
@ -129,6 +145,7 @@ jobs:
|
|||
|
||||
test-cloudflare:
|
||||
concurrency: test-cloudflare
|
||||
if: ${{ !startsWith(github.event_name, 'pull_request') || (github.event_name == 'pull_request_target' && github.event.label.name == 'full-ci') }}
|
||||
needs:
|
||||
- build
|
||||
|
||||
|
|
@ -213,7 +230,7 @@ jobs:
|
|||
|
||||
test-browsers:
|
||||
concurrency: test-browsers
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
if: ${{ !startsWith(github.event_name, 'pull_request') || (github.event_name == 'pull_request_target' && github.event.label.name == 'full-ci') }}
|
||||
env:
|
||||
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
|
||||
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue