Skip to content

Commit

Permalink
CLOUDP-194416: Isolate CI unit tests to always run
Browse files Browse the repository at this point in the history
  • Loading branch information
josvazg committed Aug 16, 2023
1 parent 3f4ae65 commit 85227b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/test-forked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ jobs:
- name: allowed message
run: echo "Allowed to run"

unit-tests-forked:
needs: allowed-forked
uses: ./.github/workflows/test-unit.yml
secrets: inherit
with:
forked: true

e2e-tests-forked:
needs: allowed-forked
uses: ./.github/workflows/test-e2e.yml
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Unit Tests.

on:
workflow_call:
inputs:
forked:
type: boolean
required: false
default: false
pull_request:
branches:
- '**'
paths-ignore:
- 'docs/**'
workflow_dispatch:

jobs:
unit-test:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ jobs:
run: |
gh pr comment ${{ github.event.pull_request.number }} -R mongodb/mongodb-atlas-kubernetes -b "https://app.codecov.io/github/mongodb/mongodb-atlas-kubernetes/commit/${{ github.event.pull_request.head.sha }}"
unit-tests:
needs: allowed
uses: ./.github/workflows/test-unit.yml
secrets: inherit
with:
forked: false

e2e-tests:
needs: allowed
uses: ./.github/workflows/test-e2e.yml
Expand Down

0 comments on commit 85227b5

Please sign in to comment.