Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split GHA pipelines #38

Merged
merged 3 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/backend_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Backend checks

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.BRANCH }}

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
cache-dependency-path: backend/build.gradle.kts

- name: Run Java backend tests
run: ./gradlew test
working-directory: backend

- name: Build with Gradle
run: ./gradlew build
working-directory: backend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR checks
name: LLM checks

on:
pull_request:
Expand All @@ -14,50 +14,6 @@ jobs:
with:
ref: ${{ github.event.inputs.BRANCH }}

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
cache-dependency-path: backend/build.gradle.kts

- name: Run Java backend tests
run: ./gradlew test
working-directory: backend

- name: Build with Gradle
run: ./gradlew build
working-directory: backend

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: ui/pnpm-lock.yaml

- name: Install UI Dependencies
run: pnpm install --no-frozen-lockfile
working-directory: ui

- name: Lint with PNPM
run: pnpm lint
working-directory: ui

- name: Run frontend tests
run: pnpm test
working-directory: ui

- name: Build with PNPM
run: pnpm build
working-directory: ui

- name: Set up Python
uses: pdm-project/setup-pdm@v3
with:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/ui_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: UI checks

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.BRANCH }}

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: ui/pnpm-lock.yaml

- name: Install UI Dependencies
run: pnpm install --no-frozen-lockfile
working-directory: ui

- name: Lint with PNPM
run: pnpm lint
working-directory: ui

- name: Run frontend tests
run: pnpm test
working-directory: ui

- name: Build with PNPM
run: pnpm build
working-directory: ui
Loading