Skip to content

Commit

Permalink
set node version in unit test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mahula committed Mar 9, 2024
1 parent a25c61e commit 0bf2c16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/backend.test.unit.code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ jobs:
env:
WORKING_DIRECTORY: ./backend
steps:
- name: Set Node version
uses: actions/setup-node@v4
with:
node-version: '>=21'

- name: Checkout code
uses: actions/checkout@v4

- name: Backend | docker-compose database
run: docker-compose -f docker-compose.yml up --detach --no-deps database

- name: Backend | Unit
- uses: actions/setup-node@v4
with:
node-version: '>=21'
run: npm install && npm run db:migrate && npm run test:unit
working-directory: ${{env.WORKING_DIRECTORY}}
8 changes: 5 additions & 3 deletions .github/workflows/presenter.test.unit.code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ jobs:
env:
WORKING_DIRECTORY: ./presenter
steps:
- name: Set Node version
uses: actions/setup-node@v4
with:
node-version: '>=21'

- name: Checkout code
uses: actions/checkout@v4

- name: Presenter | Unit
- uses: actions/setup-node@v4
with:
node-version: '>=21'
run: npm install && npm run test:unit
working-directory: ${{env.WORKING_DIRECTORY}}

0 comments on commit 0bf2c16

Please sign in to comment.