-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 995 Bytes
/
pull-request.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: Pull request
on:
pull_request:
jobs:
build:
name: Build
uses: ./.github/workflows/reusable-build.yml
test:
name: Test
uses: ./.github/workflows/reusable-test.yml
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
lint:
name: Lint
uses: ./.github/workflows/reusable-lint.yml
style:
name: Style
uses: ./.github/workflows/reusable-style.yml
performance:
name: Performance
needs: build
uses: ./.github/workflows/reusable-performance.yml
secrets:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
deploy-preview:
name: Deploy preview
needs: [build]
uses: ./.github/workflows/reusable-deploy-cloudflare-pages.yml
secrets:
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
permissions:
contents: read
deployments: write