Skip to content

Commit

Permalink
chore: cleanup containers and volumes in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
benjohns1 committed Feb 3, 2024
1 parent f8fe249 commit 3b136ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ services:

volumes:
blinkfile-src:
external: true
blinkfile-cache:
blinkfile-data:
external: true
blinkfile-data:
external: false
2 changes: 1 addition & 1 deletion docs/content/contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ npm test

### Run unit tests with coverage
```
npm run test:unit
npm run test:unit:cover
```
Open `coverage.html` in a browser to view the coverage report.

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"lint:acceptance-tests": "npm run cypress:lint",
"test": "npm run test:unit && npm run test:acceptance",
"test:unit": "npm run source && npm run go:test",
"test:unit:cover": "npm run source && npm run go:test:cover",
"test:acceptance": "npm run build && npm run acceptance-test:build && npm run acceptance-test",
"build": "docker build --tag blinkfile-candidate -f .local/build.Dockerfile .",
"serve": "docker compose -f=.local/docker-compose.yml build blinkfile && docker compose -f=.local/docker-compose.yml run -p=8020:8020 -e=PORT=8020 --rm blinkfile",
Expand All @@ -31,9 +32,9 @@
"commit": "commit",
"golangci-lint": "docker run --rm -v blinkfile-src:/app -v blinkfile-cache:/root/.cache -w /app golangci/golangci-lint:v1.55.2 golangci-lint",
"go:test": "docker build --tag blinkfile-unit-test -f .local/unit-test.Dockerfile . && docker run --rm -v blinkfile-src:/src -v blinkfile-cache:/cache blinkfile-unit-test",
"go:test:cover": "docker compose -f .local/docker-compose.yml run blinkfile-unit-test",
"go:test:cover": "docker compose -f .local/docker-compose.yml run --rm blinkfile-unit-test",
"acceptance-test:build": "docker build --tag blinkfile-acceptance-test-runner test/cypress",
"acceptance-test": "docker compose -f test/docker-compose.yml up --exit-code-from acceptance-test-runner",
"acceptance-test": "docker compose -f test/docker-compose.yml up --exit-code-from acceptance-test-runner && docker compose -f test/docker-compose.yml down",
"cypress:install": "cd test/cypress && npm i && cd ../..",
"cypress:lint": "cd test/cypress && npm run test:lint && cd ../..",
"cypress:run": "cd test/cypress && npm run test && cd ../..",
Expand Down

0 comments on commit 3b136ed

Please sign in to comment.