Skip to content

Commit a39756f

Browse files
authored
chore(e2e): fix dev env, add e2e test setup and add tests
1 parent 8cb13e0 commit a39756f

22 files changed

+1091
-409
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
@@ -36,6 +36,7 @@ logs/
3636

3737
# Generated code
3838
packages/sdk/src/generated/
39+
test-results/
3940

4041
# Environment variables
4142
.env

0 commit comments

Comments
 (0)