Skip to content

Commit c7cc996

Browse files
committed
Add tests on docker compose
1 parent b4765c0 commit c7cc996

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ jobs:
5050
run: yarn test:env:node-ts
5151
- name: Run Browser env
5252
run: yarn test:env:browser
53-
53+
docker_compose_check:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v3
57+
- name: Run docker
58+
run: docker-compose run --rm package bash -c "yarn install && yarn test && yarn lint"
5459
linter_check:
5560
runs-on: ubuntu-latest
5661
name: linter-check

tests/client_tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ describe.each([
134134
}
135135
})
136136

137-
test(`${permission} key: host without HTTP should not throw Invalid URL Error`, async () => {
137+
test(`${permission} key: host without HTTP should not throw Invalid URL Error`, () => {
138138
const strippedHost = HOST.replace('http://', '')
139139
expect(() => {
140140
new MeiliSearch({ host: strippedHost })
141141
}).not.toThrow('The provided host is not valid.')
142142
})
143143

144-
test(`${permission} key: host without HTTP and port should not throw Invalid URL Error`, async () => {
144+
test(`${permission} key: host without HTTP and port should not throw Invalid URL Error`, () => {
145145
const strippedHost = HOST.replace('http://', '').replace(':7700', '')
146146
expect(() => {
147147
new MeiliSearch({ host: strippedHost })

0 commit comments

Comments
 (0)