Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Used exec to run tests in existing container #11

Merged
merged 3 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:
image: $IMAGE_NAME:$DOCKER_METADATA_OUTPUT_VERSION" > docker-compose.ci.yml

- name: "Run tests"
run: |
docker compose -f docker-compose.testing.yml -f docker-compose.ci.yml up --abort-on-container-exit --exit-code-from activitypub
run: yarn test

- name: Login to GAR
uses: docker/login-action@v3
Expand Down
31 changes: 0 additions & 31 deletions docker-compose.testing.yml

This file was deleted.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"main": "src/app.ts",
"type": "module",
"scripts": {
"dev": "docker compose up",
"dev": "docker compose up -d --no-recreate",
"dev:record": "docker compose --env-file record.env up",
"logs": "docker compose logs activitypub -f",
"test": "yarn dev && docker compose exec activitypub yarn test:all",
"test:types": "tsc --noEmit",
"test:unit": "c8 --src src --all --reporter text --reporter cobertura mocha -r tsx './src/**/*.unit.test.ts'",
"test:integration": "c8 --src src --all --reporter text --reporter cobertura mocha -r tsx './src/**/*.integration.test.ts'",
"test:code": "c8 --src src --all --reporter text --reporter cobertura mocha -r tsx './src/**/*.test.ts'",
"test:all": "yarn test:types && yarn test:code",
"test": "docker compose -f docker-compose.testing.yml up --abort-on-container-exit --exit-code-from activitypub",
"lint:code": "eslint *.js lib/ --ext .js --cache",
"lint": "yarn lint:code"
},
Expand Down
Loading