-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.08 KB
/
check-pr.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
name: Check PR
on:
pull_request:
branches:
- master
jobs:
lint:
name: 'Run lint'
uses: ./.github/workflows/run-lint.yml
tests:
name: 'Run tests'
uses: ./.github/workflows/run-tests.yml
build:
name: 'Run tsc'
uses: ./.github/workflows/run-tsc.yml
# vercel:
# name: 'Run vercel build'
# needs: ['lint', 'tests', 'build']
# uses: ./.github/workflows/run-vercel.yml
# secrets:
# VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
# VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
# with:
# deploy: true
# branch: ${{ github.ref_name }}
# create-deployment:
# name: 'Create github deployment'
# needs: 'vercel'
# runs-on: ubuntu-latest
# env:
# GITHUB_SLUG: ${{ github.repository }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# PR_ID: ${{ github.event.pull_request.id }}
# PR_COMMIT: ${{ github.sha }}
# steps:
# - run: gh api --method POST -H "Accept: application/vnd.github+json" "/repos/$GITHUB_SLUG/deployments" -f ref=