Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DInacio02 committed May 18, 2024
2 parents a2cb47f + 440aa8f commit f27045a
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ jobs:
cd client
npm run lint || true
- name: Run Tests
run: |
cd client
npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
- 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:
Expand All @@ -93,3 +105,40 @@ jobs:
run: mvn -B test --file resource_server/pom.xml
- name: Run Tests for Authorization Server
run: mvn -B test --file authorization_server/pom.xml

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

steps:
- uses: actions/checkout@v2

- 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 Frontend Artifact
uses: actions/download-artifact@v3
with:
name: frontend-artifact
path: client/dist

- name: Build Docker images
run: |
docker build -t resource_server resource_server/
docker build -t authorization_server authorization_server/
docker build -t client client/
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

0 comments on commit f27045a

Please sign in to comment.