-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (37 loc) · 1.06 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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'