Skip to content

Commit

Permalink
Added better check for test only running once
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Jul 9, 2024
1 parent a01250a commit 6819206
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: Testing
on:
pull_request:
push:
branches: main

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 @@ -17,6 +19,9 @@ 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 @@ -28,6 +33,9 @@ jobs:

testing:
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 6819206

Please sign in to comment.