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 e9d59be commit 58b8026
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build & Test

# For every push and pull_request
on: [push, pull_request]

jobs:
backend:
# use Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
# Install Node 18
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: cd backend
- run: npm ci
- run: npm run build
- run: npm run test
frontend:
# use Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
# Install Node 18
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: cd frontend
- run: npm ci
- run: npm run build
- run: npm run test

0 comments on commit 58b8026

Please sign in to comment.