-
Notifications
You must be signed in to change notification settings - Fork 48
37 lines (34 loc) · 1.06 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: E2E Test
on:
push:
branches:
- main
- release
pull_request:
jobs:
ci:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm tsx script/ci.ts
working-directory: ./packages/backend
env:
NITRO_WEBHOOK_SECRET: ${{ secrets.NITRO_WEBHOOK_SECRET }}
NITRO_APP_ID: ${{ secrets.NITRO_APP_ID }}
NITRO_PRIVATE_KEY: ${{ secrets.NITRO_PRIVATE_KEY }}
NITRO_RM_STALE_KEY: ${{ secrets.NITRO_RM_STALE_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm build
- run: pnpm test
env:
NITRO_WEBHOOK_SECRET: ${{ secrets.NITRO_WEBHOOK_SECRET }}
NITRO_APP_ID: ${{ secrets.NITRO_APP_ID }}
NITRO_PRIVATE_KEY: ${{ secrets.NITRO_PRIVATE_KEY }}
NITRO_RM_STALE_KEY: ${{ secrets.NITRO_RM_STALE_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}