Skip to content

Commit 340ae82

Browse files
committed
BB-745: try splitting lint and unit and reduce services
1 parent bf62bd5 commit 340ae82

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/tests.yaml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,30 @@ jobs:
8080
directory: bucket-scanner
8181
flags: bucket-scanner
8282

83-
lint-and-unit:
83+
lint:
84+
runs-on: ubuntu-latest
85+
steps:
86+
- name: Checkout
87+
uses: actions/checkout@v4
88+
- uses: actions/setup-node@v6
89+
with:
90+
node-version: '22'
91+
cache: yarn
92+
- name: Install node dependencies
93+
run: yarn install --ignore-engines --frozen-lockfile --network-concurrency 1
94+
- name: Lint markdown
95+
run: yarn run --silent lint_md
96+
- name: Lint Javascript
97+
run: yarn run --silent lint
98+
99+
unit:
84100
needs: build
85101
runs-on: ubuntu-latest
86102
services:
87103
redis:
88104
image: redis:alpine
89105
ports:
90106
- 6379:6379
91-
syntheticbucketd:
92-
image: ghcr.io/${{ github.repository }}/syntheticbucketd:${{ github.sha }}
93-
ports:
94-
- 9001:9001
95107
kafka:
96108
image: ghcr.io/${{ github.repository }}/ci-kafka:${{ github.sha }}
97109
credentials:
@@ -118,10 +130,6 @@ jobs:
118130
cache: yarn
119131
- name: Install node dependencies
120132
run: yarn install --ignore-engines --frozen-lockfile --network-concurrency 1
121-
- name: Lint markdown
122-
run: yarn run --silent lint_md
123-
- name: Lint Javascript
124-
run: yarn run --silent lint
125133

126134
- name: Run unit tests
127135
run: yarn run cover

0 commit comments

Comments
 (0)