CI: Add more tests

This commit is contained in:
Luis Garcia
2024-05-06 22:30:44 -06:00
parent 1f7da2f609
commit 632dfbcadb
8 changed files with 438 additions and 32 deletions

View File

@@ -49,24 +49,48 @@ jobs:
docker-compose -f "${FOLDER}/docker-compose.yml" logs
done
- name: "Run tests"
- name: "Test Plex"
run: |
mv test/ci_plex.env .env
python main.py
python test/validate_ci_marklog.py --plex
rm mark.log
- name: "Test Jellyfin"
run: |
mv test/ci_jellyfin.env .env
python main.py
python test/validate_ci_marklog.py --jellyfin
rm mark.log
- name: "Test Emby"
run: |
mv test/ci_emby.env .env
python main.py
python test/validate_ci_marklog.py --emby
rm mark.log
- name: "Test Guids"
run: |
# Test guids
mv test/ci_guids.env .env
python main.py
cat mark.log
python test/validate_ci_marklog.py --dry
rm mark.log
# Test locations
- name: "Test Locations"
run: |
mv test/ci_locations.env .env
python main.py
cat mark.log
python test/validate_ci_marklog.py --dry
rm mark.log
- name: "Test writing to the servers"
run: |
# Test writing to the servers
mv test/ci_write.env .env
python main.py
@@ -74,8 +98,9 @@ jobs:
# Test again to test if it can handle existing data
python main.py
cat mark.log
python test/validate_ci_marklog.py --write
rm mark.log
docker:
runs-on: ubuntu-latest