Skip to content

Commit ba39470

Browse files
committedOct 31, 2024·
bump eslint
1 parent 600bb1c commit ba39470

38 files changed

+1974
-633
lines changed
 

‎.github/workflows/run-test-auth.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ on:
1313
- 'packages/shared/**'
1414
branches: [ main ]
1515

16+
env:
17+
WORKSPACE_NAME: mzm-auth
18+
1619
jobs:
1720
build:
18-
1921
runs-on: ubuntu-latest
20-
2122
services:
2223
mongodb:
2324
image: mongo:5
@@ -40,20 +41,18 @@ jobs:
4041
--health-interval 10s
4142
--health-timeout 5s
4243
--health-retries 5
43-
4444
strategy:
4545
matrix:
4646
node-version: [22.x]
47-
4847
steps:
4948
- uses: actions/checkout@v3
5049
- name: Use Node.js ${{ matrix.node-version }}
5150
uses: actions/setup-node@v3
5251
with:
5352
node-version: ${{ matrix.node-version }}
5453
- run: npm ci
55-
- run: npx concurrently "npm run build -w mzm-auth" "npm run lint -w mzm-auth" "npm run build:test -w mzm-auth"
56-
- run: npm run test:ci -w mzm-auth
54+
- run: npx concurrently "npm run build -w ${{ env.WORKSPACE_NAME }}" "npm run lint -w ${{ env.WORKSPACE_NAME }}" "npm run build:test -w ${{ env.WORKSPACE_NAME }}"
55+
- run: npm run test:ci -w ${{ env.WORKSPACE_NAME }}
5756
env:
5857
CI: true
5958
TEST_MONGODB_PORT: ${{ job.services.mongodb.ports[27017] }}

‎.github/workflows/run-test-backend.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ on:
1313
- 'packages/shared/**'
1414
branches: [ main ]
1515

16+
env:
17+
WORKSPACE_NAME: mzm-backend
18+
1619
jobs:
1720
build:
18-
1921
runs-on: ubuntu-latest
20-
2122
services:
2223
mongodb:
2324
image: mongo:5
@@ -40,20 +41,18 @@ jobs:
4041
--health-interval 10s
4142
--health-timeout 5s
4243
--health-retries 5
43-
4444
strategy:
4545
matrix:
4646
node-version: [22.x]
47-
4847
steps:
4948
- uses: actions/checkout@v3
5049
- name: Use Node.js ${{ matrix.node-version }}
5150
uses: actions/setup-node@v3
5251
with:
5352
node-version: ${{ matrix.node-version }}
5453
- run: npm ci
55-
- run: npx concurrently "npm run build -w mzm-backend" "npm run lint -w mzm-backend" "npm run build:test -w mzm-backend"
56-
- run: npm run test:ci -w mzm-backend
54+
- run: npx concurrently "npm run build -w ${{ env.WORKSPACE_NAME }}" "npm run lint -w ${{ env.WORKSPACE_NAME }}" "npm run build:test -w ${{ env.WORKSPACE_NAME }}"
55+
- run: npm run test:ci -w ${{ env.WORKSPACE_NAME }}
5756
env:
5857
CI: true
5958
TEST_MONGODB_PORT: 27017

‎.github/workflows/run-test-frontend.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@ on:
1313
- 'packages/shared/**'
1414
branches: [ main ]
1515

16+
env:
17+
WORKSPACE_NAME: mzm-frontend
18+
1619
jobs:
1720
build:
18-
1921
runs-on: ubuntu-latest
20-
2122
strategy:
2223
matrix:
2324
node-version: [22.x]
24-
2525
steps:
2626
- uses: actions/checkout@v2
2727
- name: Use Node.js ${{ matrix.node-version }}
2828
uses: actions/setup-node@v1
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
- run: npm ci
32-
- run: npm run build -w packages/shared
33-
- run: npm run build:tsc -w packages/frontend
34-
- run: npm run build -w packages/frontend
35-
- run: npm run lint -w packages/frontend
32+
- run: npm run build -w ${{ env.WORKSPACE_NAME }}
33+
- run: npm run build:tsc -w ${{ env.WORKSPACE_NAME }}
34+
- run: npm run build -w ${{ env.WORKSPACE_NAME }}
35+
- run: npm run lint -w ${{ env.WORKSPACE_NAME }}
3636
- run: npm test -w packages/frontend
3737
env:
3838
CI: true

‎.github/workflows/run-test-shared.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ on:
1111
- 'packages/shared/**'
1212
branches: [ main ]
1313

14+
env:
15+
WORKSPACE_NAME: mzm-shared
16+
1417
jobs:
1518
build:
16-
1719
runs-on: ubuntu-latest
18-
1920
strategy:
2021
matrix:
2122
node-version: [22.x]
22-
2323
steps:
2424
- uses: actions/checkout@v2
2525
- name: Use Node.js ${{ matrix.node-version }}
2626
uses: actions/setup-node@v1
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
- run: npm ci
30-
- run: npm run build -w packages/shared
31-
- run: npm run test -w packages/shared
30+
- run: npm run build -w ${{ env.WORKSPACE_NAME }}
31+
- run: npm run test -w ${{ env.WORKSPACE_NAME }}
3232
env:
33-
CI: true
33+
CI: true

0 commit comments

Comments
 (0)