forked from n8n-io/n8n
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.06 KB
/
release-pr-checks.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
38
39
40
41
42
43
44
45
46
47
48
49
name: 'Release: PR Checks'
on:
pull_request:
types:
- opened
branches:
- 'release/v**'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- run: corepack enable
- uses: actions/[email protected]
with:
node-version: 20.x
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Run typecheck
run: pnpm typecheck
- name: Cache build artifacts
uses: actions/cache/[email protected]
with:
path: ./packages/**/dist
key: ${{ github.sha }}-release-pr:build
db-tests:
name: DB tests
uses: ./.github/workflows/db-tests-reusable.yml
needs: build
with:
cache-key: ${{ github.sha }}-release-pr:build
e2e-tests:
name: E2E Tests
uses: ./.github/workflows/e2e-reusable.yml
with:
pr_number: ${{ github.event.pull_request.number }}
user: ${{ 'Release' }}
secrets:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}