Skip to content

Commit

Permalink
use docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
bombillazo committed Sep 23, 2024
1 parent a2ee14e commit 00a8542
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
uses: actions/checkout@master

- name: Build tests container
run: docker-compose build tests
run: docker compose build tests

- name: Run tests
run: docker-compose run tests
run: docker compose run tests

- name: Run tests without typechecking
id: no_typecheck
uses: mathiasvr/[email protected]
with:
run: docker-compose run no_check_tests
run: docker compose run no_check_tests
continue-on-error: true

- name: Report no typechecking tests status
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_jsr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
run: deno test --doc client.ts mod.ts pool.ts client/ connection/ query/ utils/

- name: Build tests container
run: docker-compose build tests
run: docker compose build tests

- name: Run tests
run: docker-compose run tests
run: docker compose run tests

- name: Publish (dry run)
if: startsWith(github.ref, 'refs/tags/') == false
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ result assertions.

To run the tests, run the following commands:

1. `docker-compose build tests`
2. `docker-compose run tests`
1. `docker compose build tests`
2. `docker compose run tests`

The build step will check linting and formatting as well and report it to the
command line
Expand Down
4 changes: 2 additions & 2 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ From within the project directory, run:
deno test --allow-read --allow-net --allow-env

# run in docker container
docker-compose build --no-cache
docker-compose run tests
docker compose build --no-cache
docker compose run tests
```

## Docker Configuration
Expand Down

0 comments on commit 00a8542

Please sign in to comment.