Skip to content

Commit

Permalink
Impr: fixing run front end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoCunha-19 committed May 18, 2024
1 parent b6b6879 commit 1a44515
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ jobs:
with:
name: resource-server-artifact
path: resource_server/target/*.jar

- name: Upload Authorization Server Artifact
uses: actions/upload-artifact@v3
with:
name: authorization-server-artifact
path: authorization_server/target/*.jar

- name: Upload Frontend Artifact
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -79,34 +81,44 @@ jobs:
cd client
npm run lint || true
- name: Run Tests
run: |
cd client
npm run test
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: test-results
path: ./coverage
- name: Download Resource Server Artifact
uses: actions/download-artifact@v3
with:
name: resource-server-artifact
path: resource_server/target

- name: Download Authorization Server Artifact
uses: actions/download-artifact@v3
with:
name: authorization-server-artifact
path: authorization_server/target

- name: Download Client Server Artifact
uses: actions/download-artifact@v3
with:
name: frontend-artifact
path: client/dist

- name: Run Tests for Resource Server
run: mvn -B test --file resource_server/pom.xml
- name: Run Tests for Authorization Server
run: mvn -B test --file authorization_server/pom.xml

- name: Run Tests
run: |
cd client
npm run test
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: test-results
path: ./coverage



deploy:
runs-on: ubuntu-latest
needs: test
Expand Down

0 comments on commit 1a44515

Please sign in to comment.