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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user