From 18ef0c83d2f4b64d71b29173a609d4ecee4d26d6 Mon Sep 17 00:00:00 2001 From: AndreasBrostrom Date: Fri, 11 Oct 2024 23:19:11 +0200 Subject: [PATCH] Changed so CI are now synct and handled smarter for forks --- .github/workflows/testing.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 2ae95950f..ef30c296b 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1,14 +1,15 @@ name: Testing on: - pull_request: push: + branches: + - main + pull_request: + types: [opened, synchronize, ready_for_review] + jobs: validate: runs-on: ubuntu-latest - if: github.event_name != 'pull_request' || - github.event.pull_request.head.repo.full_name != - github.event.pull_request.base.repo.full_name steps: - name: Checkout the source code uses: actions/checkout@master @@ -19,9 +20,6 @@ jobs: lint: runs-on: ubuntu-latest - if: github.event_name != 'pull_request' || - github.event.pull_request.head.repo.full_name != - github.event.pull_request.base.repo.full_name steps: - name: Checkout the source code uses: actions/checkout@master @@ -31,11 +29,8 @@ jobs: args: --exit e --directory cScripts/functions continue-on-error: true # No failure due to many false-positives - testing: + quality: runs-on: ubuntu-latest - if: github.event_name != 'pull_request' || - github.event.pull_request.head.repo.full_name != - github.event.pull_request.base.repo.full_name steps: - name: Checkout the source code uses: actions/checkout@master