Skip to content

Commit

Permalink
wip(test): add test for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
manuandru committed Jul 14, 2023
1 parent b1dc07f commit a82d14f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/service-unit-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,25 @@ jobs:
- name: Print microservices to test
run: |
echo ${{ steps.get-microservices.outputs.microservices }}
test-microservice:
name: Testing ${{ matrix.path }} microservice
runs-on: ubuntu-latest
needs: get-changes
if: ${{ needs.get-changes.outputs.microservices != '[]' }}
strategy:
fail-fast: false
matrix:
path: ${{ fromJson(needs.get-changes.outputs.microservices) }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Run tests
run: |
cd ${{ matrix.path }}
npm ci
npm test

0 comments on commit a82d14f

Please sign in to comment.