-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 945 Bytes
/
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Pull request validator
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }},
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }},
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }},
ADMIN_PASSWORD: ${{ secrets.ADMIN_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Run linter
run: yarn lint
- name: Run formatter
run: yarn prettier:check