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 32b4f56 commit a25c61e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/backend.test.unit.code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ jobs:
env:
WORKING_DIRECTORY: ./backend
steps:
- name: Set Node.js 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: 3 additions & 5 deletions .github/workflows/presenter.test.unit.code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ 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 a25c61e

Please sign in to comment.