setup e2e tests #27
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |