Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Create CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-sti1 committed Sep 2, 2023
1 parent cb251ff commit 7d912d8
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# use Ubuntu 22.04 & Node 18
name: Build & Test

on: [pull_request]

jobs:
backend:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Run prettier
run: npx prettier . --check
- name: Build
run: npm run build
- name: Tests
run: npm run test

frontend:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Run prettier on frontend
run: npx prettier . --check
- name: Build
run: npm run build
- name: Tests
run: npm run test

0 comments on commit 7d912d8

Please sign in to comment.