-
Notifications
You must be signed in to change notification settings - Fork 36
35 lines (32 loc) · 874 Bytes
/
react.yml
File metadata and controls
35 lines (32 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
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 }}