Skip to content

Commit

Permalink
[FSSDK-10438] prioritize integration test before unit test run
Browse files Browse the repository at this point in the history
  • Loading branch information
junaed-optimizely committed Sep 20, 2024
1 parent 80e4d2c commit b780845
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
branches: [ master ]

jobs:
integration_tests:
name: Run integration tests
uses: optimizely/react-sdk/.github/workflows/integration_test.yml@master
secrets:
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }}
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}
unitTests:
name: Run Unit Tests (Node ${{ matrix.node }})
runs-on: ubuntu-latest
Expand All @@ -24,7 +30,6 @@ jobs:
run: yarn install
- name: Run tests
run: yarn test

coverage:
name: Jest Coverage Report
runs-on: ubuntu-latest
Expand All @@ -36,10 +41,4 @@ jobs:
custom-title: 'Jest Coverage Report'
package-manager: 'yarn'

integration_tests:
name: Run integration tests
needs: [ unitTests ]
uses: optimizely/react-sdk/.github/workflows/integration_test.yml@master
secrets:
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }}
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}

0 comments on commit b780845

Please sign in to comment.