[FSSDK-12169] Build system update #471
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: React SDK CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| unitTests: | |
| name: Run Unit Tests (Node ${{ matrix.node }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [ '18', '20', '22', '24' ] | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| - name: Set up Node ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm test | |
| coverage: | |
| name: Jest Coverage Report | |
| runs-on: ubuntu-latest | |
| needs: [ unitTests ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ArtiomTr/jest-coverage-report-action@v2 | |
| with: | |
| custom-title: 'Jest Coverage Report' | |
| package-manager: 'npm' | |
| 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 }} |