Skip to content

Commit

Permalink
Run matrix test per package
Browse files Browse the repository at this point in the history
  • Loading branch information
unkhz committed Jul 19, 2024
1 parent 7a132ac commit 63b1699
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,22 @@ jobs:

strategy:
matrix:
target: ['lint-all', 'test-all']
package:
[
'archive',
'base-node',
'common-archive-client',
'common-data',
'common-postgres',
'configurator',
'gatherer-http',
'gatherer-stdin',
'infra-postgres',
'infra-redis',
'listener',
'publisher',
]
target: ['lint', 'test']
node-version: [20.x, 22.x]

steps:
Expand All @@ -27,11 +42,12 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm run ${{ matrix.target }}
- run: npx nx run ${{ matrix.package }}:${{ matrix.target }}

build:
if: ${{ ! endsWith(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
needs: test

strategy:
matrix:
Expand Down

0 comments on commit 63b1699

Please sign in to comment.