Merge branch 'SKIL-468' into SKIL-471 #4
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build backend | |
run: docker compose build backend | |
# TODO: Run pytests here | |
- name: Start backend | |
run: | | |
docker compose up --no-build -d backend | |
sleep 5 | |
curl -v 'http://127.0.0.1:5050/api' | |
- name: Install Node dependencies | |
run: | | |
cd FrontEndReact | |
npm install | |
- name: Run ESLint | |
run: | | |
cd FrontEndReact | |
npx eslint --max-warnings=0 . | |
# TODO: Fix Jest tests so that they work on CI | |
# - name: Run Jest tests | |
# run: | | |
# cd FrontEndReact | |
# npm test | |
# env: | |
# REACT_APP_API_URL: 'http://127.0.0.1:5050/api' |