|
51 | 51 | run: |
|
52 | 52 | LOG=debug PM=${{ matrix.package-manager }} pnpm --filter trigger.dev run test:e2e
|
53 | 53 |
|
54 |
| - webapp: |
55 |
| - name: "🧪 Webapp tests" |
56 |
| - if: inputs.package == 'webapp' || inputs.package == '' |
57 |
| - runs-on: buildjet-16vcpu-ubuntu-2204 |
58 |
| - steps: |
59 |
| - - name: 🐳 Login to Docker Hub |
60 |
| - uses: docker/login-action@v2 |
61 |
| - with: |
62 |
| - username: ${{ secrets.DOCKERHUB_USERNAME || vars.DOCKERHUB_USERNAME }} |
63 |
| - password: ${{ secrets.DOCKERHUB_TOKEN || vars.DOCKERHUB_TOKEN }} |
64 |
| - |
65 |
| - - name: ⬇️ Checkout repo |
66 |
| - uses: actions/checkout@v3 |
67 |
| - with: |
68 |
| - fetch-depth: 0 |
69 |
| - submodules: recursive |
70 |
| - |
71 |
| - - name: ⎔ Setup pnpm |
72 |
| - uses: pnpm/action-setup@v4 |
73 |
| - with: |
74 |
| - version: 8.15.5 |
75 |
| - |
76 |
| - - name: ⎔ Setup node |
77 |
| - uses: buildjet/setup-node@v3 |
78 |
| - with: |
79 |
| - node-version: 20.11.1 |
80 |
| - cache: "pnpm" |
81 |
| - |
82 |
| - - name: 📥 Download deps |
83 |
| - run: pnpm install --frozen-lockfile |
84 |
| - |
85 |
| - - name: Install Playwright Browsers |
86 |
| - run: npx playwright install --with-deps |
87 | 54 |
|
88 |
| - - name: Run Playwright tests |
89 |
| - run: | |
90 |
| - # Setup environment variables |
91 |
| - cp ./.env.example ./.env |
92 |
| - cp ./references/nextjs-test/.env.example ./references/nextjs-test/.env.local |
93 |
| -
|
94 |
| - # Build packages |
95 |
| - pnpm run build --filter @references/nextjs-test^... |
96 |
| - cd apps/webapp && pnpm run build:server |
97 |
| - cd ../.. |
98 |
| - pnpm --filter @trigger.dev/database generate |
99 |
| - pnpm --filter @trigger.dev/otlp-importer generate |
100 |
| -
|
101 |
| - # Move trigger-cli bin to correct place |
102 |
| - pnpm install --frozen-lockfile |
103 |
| -
|
104 |
| - # Execute tests |
105 |
| - pnpm run docker |
106 |
| - pnpm run db:migrate |
107 |
| - pnpm run db:seed |
108 |
| - pnpm run test:e2e |
109 |
| -
|
110 |
| - # Cleanup |
111 |
| - pnpm run docker:stop |
112 |
| -
|
113 |
| - - name: Upload Playwright report |
114 |
| - uses: actions/upload-artifact@v3 |
115 |
| - if: always() |
116 |
| - with: |
117 |
| - name: playwright-report |
118 |
| - path: playwright-report/ |
119 |
| - retention-days: 30 |
0 commit comments