Skip to content

Commit

Permalink
Merge pull request #11420 from nanaya/karma-container
Browse files Browse the repository at this point in the history
Add separate container for javascript test
  • Loading branch information
notbakaneko authored Aug 15, 2024
2 parents 4605df3 + 3b21f83 commit 882588b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ yarn karma start --single-run
or if using Docker:

```
docker compose run --rm php test js
docker compose run --rm testjs
```

# Documentation
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ services:
<<: *x-web
command: ['job']

testjs:
<<: *x-web
volumes:
- .:/app
- .docker/js-build/assets:/app/public/assets
- .docker/js-build/builds:/app/resources/builds
profiles: ['testjs']
command: ['test', 'js']

schedule:
<<: *x-web
command: ['schedule']
Expand Down
1 change: 1 addition & 0 deletions docker/development/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if [ "$uid" != 0 ]; then
fi

usermod -d /app/.docker osuweb > /dev/null
chown -f "${uid}:${gid}" .docker/js-build/assets .docker/js-build/builds

# helper functions
_rexec() {
Expand Down

0 comments on commit 882588b

Please sign in to comment.