Skip to content

Commit 83b7868

Browse files
committed
Add workflow to check PRs (from renovate)
1 parent 38c8451 commit 83b7868

2 files changed

Lines changed: 82 additions & 0 deletions

File tree

.github/workflows/pr-backend.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: PR Check Backend
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- backend/**
9+
- .github/workflows/pr-backend.yaml
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
check:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v6
21+
22+
- name: Set up JDK
23+
uses: actions/setup-java@v5
24+
with:
25+
java-version: "22"
26+
distribution: "temurin"
27+
28+
- name: Setup Gradle
29+
uses: gradle/actions/setup-gradle@v5
30+
31+
- name: Check
32+
run: ./gradlew check
33+
working-directory: backend
34+
35+
- name: Upload reports on failure
36+
if: failure()
37+
uses: actions/upload-artifact@v7
38+
with:
39+
name: backend-reports
40+
path: |
41+
backend/**/build/reports/
42+
backend/**/build/test-results/

.github/workflows/pr-frontend.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: PR Check Frontend
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- frontend/**
9+
- .github/workflows/pr-frontend.yaml
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
check:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v6
21+
22+
- name: Set up Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "24"
26+
27+
- name: Set up pnpm
28+
uses: pnpm/action-setup@v4
29+
30+
- name: Install dependencies
31+
run: pnpm install --frozen-lockfile
32+
working-directory: frontend
33+
34+
- name: Lint
35+
run: pnpm lint
36+
working-directory: frontend
37+
38+
- name: Build
39+
run: pnpm build
40+
working-directory: frontend

0 commit comments

Comments
 (0)