-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (44 loc) · 1.4 KB
/
pre-commit.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
50
51
52
53
54
55
56
57
58
name: pre-commit
on:
push:
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
ACCESS_SECRET_KEY: ${{ secrets.ACCESS_SECRET_KEY }}
RESET_PASSWORD_SECRET_KEY: ${{ secrets.RESET_PASSWORD_SECRET_KEY }}
VERIFICATION_SECRET_KEY: ${{ secrets.VERIFICATION_SECRET_KEY }}
OPENAPI_OUTPUT_FILE: ${{ secrets.OPENAPI_OUTPUT_FILE }}
CORS_ORIGINS: ${{ secrets.CORS_ORIGINS }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry with pip
run: pip install poetry
- name: Configure Poetry
working-directory: ./fastapi_backend
run: poetry config virtualenvs.create false
- name: Install dependencies
working-directory: ./fastapi_backend
run: poetry install
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install Node dependencies
working-directory: ./nextjs-frontend
run: pnpm install
- name: Run pre-commit
uses: pre-commit/[email protected]