Implement a docker container for tests (#8199)

* FEAT: implement container for tests

* FEAT: add action for building image

* FIX: pin luajit by hash instead of tag

* FIX: typo
This commit is contained in:
Paliak
2025-01-03 23:10:39 +01:00
committed by GitHub
parent 5dc8ca4ed8
commit c70e9ddcaf
4 changed files with 97 additions and 30 deletions

View File

@@ -1,19 +1,16 @@
version: "3.8"
services:
busted-tests:
image: summ1else/poe-busted-image
container_name: busted-tests
command: bash -c "rm -f spec/test_results.log && busted --lua=luajit | tee spec/test_results.log"
#build: .
image: ghcr.io/paliak/pathofbuilding-tests:latest
environment:
HOME: /tmp
container_name: pathofbuilding-tests
user: nobody:nobody
command: busted --lua=luajit
security_opt:
- no-new-privileges:true
ports:
- "9966:9966"
working_dir: /workdir
volumes:
- ./:/root
depends_on:
- busted-generate-build
busted-generate-build:
image: summ1else/poe-busted-image
container_name: busted-generate-build
command: bash -c "rm -f spec/test_generation.log && busted --lua=luajit -r generate | tee spec/test_generation.log"
restart: "no"
volumes:
- ./:/root
- ./:/workdir:ro