-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (29 loc) · 897 Bytes
/
Copy pathpr-check.yml
File metadata and controls
35 lines (29 loc) · 897 Bytes
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
name: Pull Request Check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
checking-pr:
runs-on: ubuntu-latest
environment: github-pages
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: 'yarn'
- name: Test
run: |
yarn install
yarn pr-check
env:
NEXT_PUBLIC_NODE_ENV: production
NEXT_PUBLIC_GOOGLE_SEARCH_CONSOLE_API_KEY: ${{ secrets.GOOGLE_SEARCH_CONSOLE_API_KEY }}
NEXT_PUBLIC_GOOGLE_ADSENSE_CLIENT_ID: ${{ secrets.GOOGLE_ADSENSE_CLIENT_ID }}
NEXT_PUBLIC_WEBSITE_DNS_NAME: ${{ secrets.WEBSITE_DNS_NAME }}
NEXT_PUBLIC_WEBSITE_URL: ${{ secrets.WEBSITE_URL }}