-
Notifications
You must be signed in to change notification settings - Fork 16
36 lines (33 loc) · 1.09 KB
/
integration.yml
File metadata and controls
36 lines (33 loc) · 1.09 KB
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
36
name: Integration Tests
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
run-integration-tests:
strategy:
matrix:
react-version: [18, 19]
runs-on: ubuntu-latest
name: React ${{ matrix.react-version }}
env:
INTEGRATION_KNOCK_PUBLIC_KEY: ${{ secrets.INTEGRATION_KNOCK_PUBLIC_KEY }}
INTEGRATION_KNOCK_USER_ID: ${{ secrets.INTEGRATION_KNOCK_USER_ID }}
INTEGRATION_KNOCK_FEED_ID: ${{ secrets.INTEGRATION_KNOCK_FEED_ID }}
steps:
- name: Checkout Latest
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: "package.json"
cache: "yarn"
registry-url: "https://registry.npmjs.org"
scope: "@knocklabs"
- name: Install Dependencies
run: yarn install
- name: Build Packages
run: yarn build:packages
- name: Run Integration Tests
run: yarn test:integration:react-${{ matrix.react-version }}