Skip to content

Commit

Permalink
Add unit tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Mar 14, 2024
1 parent 8b6e185 commit d7dc220
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# Check for changes
- uses: dorny/paths-filter@v2
- name: Check for changes
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
Expand All @@ -24,6 +24,14 @@ jobs:
shared:
- 'shared/**'
- name: Validate API
if: steps.filter.outputs.api == 'true' || steps.filter.outputs.shared == 'true'
run: |
cd api
npm install
npm test:unit
- name: Build the Docker image for API
if: steps.filter.outputs.api == 'true' || steps.filter.outputs.shared == 'true'
run: docker build . --file ./api/Dockerfile

0 comments on commit d7dc220

Please sign in to comment.