diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 05d0f662..90d737a8 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -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: @@ -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