-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.21 KB
/
tests.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
49
50
51
52
name: Tests CI
on:
push:
branches-ignore:
- main
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Build Images
run: docker-compose -f docker-compose.test.yml build
test:
runs-on: self-hosted
needs: build
steps:
- name: Run Tests
run: |
docker-compose -f docker-compose.test.yml up -d --force-recreate
sleep 30
echo Running front lint...
docker exec iss-test-front npm run lint
echo Running front tests...
docker exec iss-test-front npm run test
# docker exec iss-test-front npm run compile
echo Running back/storage lint...
docker exec iss-tests flake8
echo Running back tests...
docker exec iss-test-back ./manage.py test
echo Running storage tests...
docker exec iss-test-storage python3 src/test.py
# docker exec iss-tests python3 test.py
clean:
runs-on: self-hosted
needs: test
if: always()
steps:
- name: Clean up
run: |
docker-compose -f docker-compose.test.yml down --volumes --remove-orphans
docker system prune --volumes --force