Skip to content

Commit a7c7772

Browse files
authored
Adjusting docker start for new CI action (#270)
1 parent a6c2f89 commit a7c7772

4 files changed

Lines changed: 47 additions & 48 deletions

File tree

.github/workflows/ci.common.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Common CI
22
on:
33
workflow_call:
44
inputs:
5-
working_directory:
6-
required: true
7-
type: string
85
package_name:
96
required: true
107
type: string
@@ -30,12 +27,10 @@ jobs:
3027
run: npm run build -- --filter=${{ inputs.package_name }}
3128

3229
- name: Docker start
33-
run: npm run docker:start
34-
working-directory: ${{ inputs.working_directory }}
30+
run: npm run docker:start -- --filter=${{ inputs.package_name }}
3531

3632
- name: Run Tests
3733
run: npm run test:ci -- --filter=${{ inputs.package_name }}
3834

3935
- name: Docker stop
40-
run: npm run docker:stop
41-
working-directory: ${{ inputs.working_directory }}
36+
run: npm run docker:stop -- --filter=${{ inputs.package_name }}

biome.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"extends": [
4-
"./node_modules/@lokalise/biome-config/configs/biome-base.jsonc",
5-
"./node_modules/@lokalise/biome-config/configs/biome-esm.jsonc",
6-
"./node_modules/@lokalise/biome-config/configs/biome-package.jsonc"
7-
]
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": [
4+
"./node_modules/@lokalise/biome-config/configs/biome-base.jsonc",
5+
"./node_modules/@lokalise/biome-config/configs/biome-esm.jsonc",
6+
"./node_modules/@lokalise/biome-config/configs/biome-package.jsonc"
7+
]
88
}

package.json

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{
2-
"name": "@message-queue-toolkit/parent",
3-
"version": "1.0.0",
4-
"workspaces": ["packages/*"],
5-
"scripts": {
6-
"build": "turbo run build",
7-
"lint": "turbo run lint --continue",
8-
"lint:fix": "turbo run lint:fix --continue",
9-
"test:ci": "turbo run test:coverage",
10-
"clean": "turbo run clean",
11-
"docker:start": "docker compose up -d",
12-
"docker:stop": "docker compose down"
13-
},
14-
"dependencies": {},
15-
"devDependencies": {
16-
"turbo": "^2.3.4"
17-
},
18-
"packageManager": "npm@10.7.0"
2+
"name": "@message-queue-toolkit/parent",
3+
"version": "1.0.0",
4+
"workspaces": ["packages/*"],
5+
"scripts": {
6+
"build": "turbo run build",
7+
"lint": "turbo run lint --continue",
8+
"lint:fix": "turbo run lint:fix --continue",
9+
"test:ci": "turbo run test:coverage",
10+
"clean": "turbo run clean",
11+
"docker:start": "docker compose up -d",
12+
"docker:stop": "docker compose down",
13+
"docker:start:ci": "turbo run docker:start",
14+
"docker:stop:ci": "turbo run docker:stop"
15+
},
16+
"dependencies": {},
17+
"devDependencies": {
18+
"turbo": "^2.3.4"
19+
},
20+
"packageManager": "npm@10.7.0"
1921
}

turbo.json

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
{
2-
"$schema": "https://turbo.build/schema.json",
3-
"tasks": {
4-
"build": {
5-
"dependsOn": ["^build"],
6-
"outputLogs": "new-only"
7-
},
8-
"clean": {
9-
"cache": false
10-
},
11-
"test:coverage": {
12-
"dependsOn": ["^test:coverage"]
13-
},
14-
"lint": {
15-
"outputLogs": "errors-only"
16-
},
17-
"lint:fix": {
18-
"outputLogs": "errors-only"
2+
"$schema": "https://turbo.build/schema.json",
3+
"tasks": {
4+
"build": {
5+
"dependsOn": ["^build"],
6+
"outputLogs": "new-only"
7+
},
8+
"clean": {
9+
"cache": false
10+
},
11+
"test:coverage": {
12+
"dependsOn": ["^test:coverage"]
13+
},
14+
"lint": {
15+
"outputLogs": "errors-only"
16+
},
17+
"lint:fix": {
18+
"outputLogs": "errors-only"
19+
},
20+
"docker:start": {},
21+
"docker:stop": {}
1922
}
20-
}
2123
}

0 commit comments

Comments
 (0)