Skip to content

Commit

Permalink
Use docker compose V2
Browse files Browse the repository at this point in the history
  • Loading branch information
yo35 committed Jul 29, 2024
1 parent 0403fd7 commit a6307a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
with:
node-version: latest
- run: npm ci
- run: docker-compose -f scripts/docker-compose.yml up -d
- run: docker compose -f scripts/docker-compose.yml up -d
- run: npm test
- run: docker-compose -f scripts/docker-compose.yml down
- run: docker compose -f scripts/docker-compose.yml down
if: ${{ always() }}
- uses: coverallsapp/github-action@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
"preunit": "npm run build:lib && webpack --config scripts/test-headless.webpack.config.js && webpack --config scripts/test-graphic.webpack.config.js && rimraf build/graphic_output",
"unit": "nyc mocha --enable-source-maps --bail --sort",
"test": "npm run lint && npm run unit",
"test_env:start": "docker-compose -p kokopu-react-test-env -f scripts/docker-compose.yml up -d",
"test_env:stop": "docker-compose -p kokopu-react-test-env -f scripts/docker-compose.yml down",
"test_env:start": "docker compose -p kokopu-react-test-env -f scripts/docker-compose.yml up -d",
"test_env:stop": "docker compose -p kokopu-react-test-env -f scripts/docker-compose.yml down",
"build": "npm run build:lib && npm run build:doc",
"build:doc": "rimraf dist/docs && styleguidist build --config scripts/doc.styleguide.config.js && copyfiles -u 2 'doc_src/theming/*.png' dist/docs",
"build:lib": "rimraf dist/lib && tsc --outDir dist/lib && copyfiles -u 1 'src/**/*.{css,png,woff,woff2}' dist/lib",
Expand Down
2 changes: 0 additions & 2 deletions scripts/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.7"

services:
web-client:
image: selenium/standalone-firefox:4.21.0-20240522 # https://github.com/SeleniumHQ/docker-selenium to get the latest version
Expand Down

0 comments on commit a6307a2

Please sign in to comment.