Skip to content

Commit 943a248

Browse files
committed
add e2e setup
1 parent ecdcef4 commit 943a248

20 files changed

+1803
-1143
lines changed

.github/workflows/e2e-cli.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CLI E2E Tests
2+
3+
permissions: {}
4+
5+
on:
6+
schedule:
7+
# run every day at 7:00 AM UTC
8+
- cron: '0 7 * * *'
9+
push:
10+
branches: [main]
11+
pull_request:
12+
branches: [main]
13+
workflow_dispatch:
14+
15+
jobs:
16+
e2e-tests:
17+
name: CLI E2E Tests
18+
runs-on: ubuntu-latest
19+
env:
20+
E2E_REFRESH_TOKEN: ${{ secrets.E2E_REFRESH_TOKEN }}
21+
E2E_TEST_ENVIRONMENT: ${{ secrets.E2E_TEST_ENVIRONMENT }}
22+
strategy:
23+
matrix:
24+
node-version: [18.x, 20.x]
25+
fail-fast: false
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
32+
33+
- name: Setup Node.js ${{ matrix.node-version }}
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
cache: 'npm'
38+
39+
- name: Install dependencies
40+
run: npm ci
41+
42+
- name: Build packages
43+
run: npx nx run-many -t build
44+
45+
- name: Run CLI E2E tests
46+
run: npm run test:cli:e2e
47+
env:
48+
CI: true
49+
NODE_ENV: test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ logs/
3333

3434
# Generated code
3535
packages/sdk/src/generated/
36+
test-results/
3637

3738
# Environment variables
3839
.env

ATTRIBUTIONS.md

Lines changed: 721 additions & 735 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)