Skip to content

Commit

Permalink
CI are now synct and handled smarter for forks
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Oct 11, 2024
1 parent 8534bf5 commit 1031541
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy_artifacts_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, ready_for_review]


jobs:
build:
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1031541

Please sign in to comment.