Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/e2e-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CLI E2E Tests

permissions: {}

on:
schedule:
# run every day at 7:00 AM UTC
- cron: '0 7 * * *'
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
e2e-tests:
name: CLI E2E Tests
runs-on: ubuntu-latest
env:
E2E_REFRESH_TOKEN: ${{ secrets.E2E_REFRESH_TOKEN }}
E2E_TEST_ENVIRONMENT: ${{ secrets.E2E_TEST_ENVIRONMENT }}
strategy:
matrix:
node-version: [18.x, 20.x]
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build packages
run: npx nx run-many -t build

- name: Run CLI E2E tests
run: npm run test:cli:e2e
env:
CI: true
NODE_ENV: test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ logs/

# Generated code
packages/sdk/src/generated/
test-results/

# Environment variables
.env
Expand Down
Loading