This repository has been archived by the owner on May 4, 2024. It is now read-only.
Create CI #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
# For every push and pull_request | |
on: [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: ls | |
- 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 |