Skip to content

Commit 15229ce

Browse files
committed
Edit workflow to add tests
1 parent 27283a4 commit 15229ce

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
service: [frontend, services/question, services/user, services/match, services/collaboration]
26+
service: [frontend, services/user, services/match]
2727
steps:
2828
- uses: actions/checkout@v4
2929
- name: Use Node.js
@@ -38,20 +38,24 @@ jobs:
3838
run: cd ${{ matrix.service }} && npm run build
3939

4040

41-
build-history:
41+
build-service-and-test:
4242
runs-on: ubuntu-latest
4343
timeout-minutes: 60
44+
strategy:
45+
fail-fast: false
46+
matrix:
47+
service: [services/question, services/collaboration, services/history]
4448
steps:
4549
- uses: actions/checkout@v4
4650
- name: Use Node.js
4751
uses: actions/setup-node@v4
4852
with:
4953
node-version: ${{ env.node-version }}
5054
- name: Install Node Modules
51-
run: cd services/history && npm ci
55+
run: cd ${{ matrix.service }} && npm ci
5256
- name: Linting
53-
run: cd services/history && npm run lint
57+
run: cd ${{ matrix.service }} && npm run lint
5458
- name: Build App
55-
run: cd services/history && npm run build
59+
run: cd ${{ matrix.service }} && npm run build
5660
- name: Run tests
57-
run: cd services/history && npm run test
61+
run: cd ${{ matrix.service }} && npm run test

0 commit comments

Comments
 (0)