Skip to content

Commit 79e46f1

Browse files
fix(ci): add production build checks for examples
1 parent 333a3fe commit 79e46f1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/integration.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,26 @@ jobs:
6363
- name: Build SDK
6464
run: npm run build
6565

66+
- name: Pack SDK
67+
run: npm pack
68+
6669
- name: Install examples
6770
run: npm run install:examples
6871

72+
- name: Install local SDK into CRA example
73+
run: npm install --prefix=examples/cra-react-router $(ls auth0-auth0-react-*.tgz) --legacy-peer-deps
74+
75+
- name: Build CRA example (production)
76+
run: npm run build --prefix=examples/cra-react-router
77+
env:
78+
CI: false
79+
80+
- name: Build Next.js example (production)
81+
run: npm run build --prefix=examples/nextjs-app
82+
83+
- name: Build Gatsby example (production)
84+
run: npm run build --prefix=examples/gatsby-app
85+
6986
- name: Run integration test (CRA)
7087
run: npm run test:cra
7188

0 commit comments

Comments
 (0)