Skip to content

Commit c400576

Browse files
committed
feat: add PR checks workflow for automated testing and linting
1 parent 3aa7de3 commit c400576

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/pr-checks.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: PR Checks
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.11'
23+
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v3
26+
with:
27+
version: 8
28+
29+
- name: Install dependencies
30+
run: pnpm install
31+
32+
- name: Setup recommendation-api (Linux)
33+
run: |
34+
cd apps/recommendation-api
35+
pnpm setup-linux
36+
37+
- name: Lint
38+
run: pnpm lint

0 commit comments

Comments
 (0)