Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
💚 Split GithHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mahata committed Aug 20, 2024
1 parent f74ee2e commit 8d00f85
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 41 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci-backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI - backend

on:
push:
paths:
- 'backend/**'
pull_request:
paths:
- 'backend/**'

jobs:
backend:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'

- name: Run Spring Boot tests
run: make t_backend
27 changes: 27 additions & 0 deletions .github/workflows/ci-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI - frontend

on:
push:
paths:
- 'frontend/**'
pull_request:
paths:
- 'frontend/**'
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache-dependency-path: frontend/package-lock.json
node-version: "20"
cache: npm

- name: Test Frontend with Vitest
run: |
npm --prefix ./frontend install
make t_frontend
40 changes: 0 additions & 40 deletions .github/workflows/ci.yml

This file was deleted.

1 change: 0 additions & 1 deletion frontend/src/component/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default function Header() {
});
}, [getAuthStatus, setAuthed]);

///
return (
<header className="w-full bg-blue-400 shadow shadow-blue-600">
<nav className="flex h-14 justify-between">
Expand Down

0 comments on commit 8d00f85

Please sign in to comment.