Skip to content

Commit

Permalink
Update workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NadicaUzunova committed Aug 9, 2024
1 parent 2ce6f4f commit 3f3f6fa
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,24 @@ jobs:
run: mvn -B package --file backend/pom.xml -DskipTests

test_frontend:
needs: build_backend
runs-on: ubuntu-latest
needs: build_backend
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: cd frontend && npm ci
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Run tests
run: cd frontend && npm test --findRelatedTests **/*.test.js
- name: Install dependencies
run: cd frontend && npm ci

- name: Run tests
run: cd frontend && npm test -- --testMatch '**/*.test.js'


build_frontend:
needs: [build_backend, test_frontend]
Expand Down

0 comments on commit 3f3f6fa

Please sign in to comment.