Skip to content

Commit

Permalink
fixed test stage...
Browse files Browse the repository at this point in the history
  • Loading branch information
shammy642 committed Oct 15, 2024
1 parent 31ea107 commit e089b07
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/api.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,16 @@ jobs:

test:
runs-on: ubuntu-latest
needs: build
defaults:
run:
working-directory: api
steps:
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
- name: API - run tests
run: npm run test
15 changes: 11 additions & 4 deletions .github/workflows/frontend.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,23 @@ jobs:
with:
node-version: 22.x
cache: 'npm'
- name: API - install dependencies
- name: Frontend - install dependencies
run: npm install
- name: API - build
- name: Frontend - build
run: npm run build --if-present

test:
runs-on: ubuntu-latest
needs: build
defaults:
run:
working-directory: fontend
steps:
- name: API - run tests
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
- name: Frontend - run tests
run: npm run test

0 comments on commit e089b07

Please sign in to comment.