diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1082af6..b11a762 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,10 +2,12 @@ // README at: https://github.com/devcontainers/templates/tree/main/src/debian { "name": "Dev", - "dockerComposeFile": ["./docker-compose.yaml"], + "dockerComposeFile": [ + "./docker-compose.yaml" + ], "service": "workspace", "workspaceFolder": "/workspace/anubis", - "postStartCommand": "npm ci && go mod download", + "postStartCommand": "bash ./.devcontainer/poststart.sh", "features": { "ghcr.io/xe/devcontainer-features/ko:1.1.0": {}, "ghcr.io/devcontainers/features/github-cli:1": {} @@ -23,4 +25,4 @@ ] } } -} +} \ No newline at end of file diff --git a/.devcontainer/poststart.sh b/.devcontainer/poststart.sh new file mode 100644 index 0000000..93ed3a9 --- /dev/null +++ b/.devcontainer/poststart.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +pwd + +npm ci & +go mod download & +go install ./utils/cmd/... & + +wait diff --git a/test/i18n/test.sh b/test/i18n/test.sh index 3d6a16f..5f74b9d 100755 --- a/test/i18n/test.sh +++ b/test/i18n/test.sh @@ -20,4 +20,4 @@ go tool anubis \ --use-remote-address \ --target=unix://$(pwd)/unixhttpd.sock & -go run ../cmd/backoff-retry node ./test.mjs +backoff-retry node ./test.mjs