1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-19 13:19:41 +02:00

chore: cancel running pull request jobs on new push (#4339)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Kuchenpirat 2024-10-09 16:51:10 +02:00 committed by GitHub
parent 655122c390
commit d36041fa75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 5 deletions

View file

@ -14,10 +14,9 @@ name: "CodeQL"
on: on:
push: push:
branches: [ "mealie-next" ] branches: [ "mealie-next" ]
pull_request:
branches: [ "mealie-next" ]
schedule: schedule:
- cron: '36 9 * * 3' - cron: '36 9 * * 3'
workflow_call:
jobs: jobs:
analyze: analyze:

View file

@ -1,8 +1,7 @@
name: E2E Tests name: E2E Tests
on: on:
pull_request: workflow_call:
branches:
- mealie-next
jobs: jobs:
test: test:
timeout-minutes: 60 timeout-minutes: 60

View file

@ -5,6 +5,10 @@ on:
branches: branches:
- mealie-next - mealie-next
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs: jobs:
pull-request-lint: pull-request-lint:
name: "Lint PR" name: "Lint PR"
@ -21,3 +25,15 @@ jobs:
container-scanning: container-scanning:
name: "Trivy Container Scanning" name: "Trivy Container Scanning"
uses: ./.github/workflows/partial-trivy-container-scanning.yml uses: ./.github/workflows/partial-trivy-container-scanning.yml
end-to-end:
name: "End-to-End Tests"
uses: ./.github/workflows/e2e.yml
code-ql:
name: "CodeQL"
uses: ./.github/workflows/codeql.yml
permissions:
actions: read
contents: read
security-events: write