Skip to content

Commit

Permalink
Test pipe (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
SMANUM and actions-user authored Nov 15, 2023
1 parent e6c3155 commit 2d54e66
Show file tree
Hide file tree
Showing 4 changed files with 4,233 additions and 4,191 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,32 @@ jobs:
- name: Test and Integration tests
run: |
mvn package -Pnative -Dquarkus.application.name=atm-layer-model -Dquarkus.profile=prod
- name: Create Status check based on postman results
id: process-postman
uses: im-open/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
results-file: src/test/resources/integration-test/output/result.json
report-name: 'Postman ${{ github.run_number }}'
create-status-check: true
create-pr-comment: true
update-comment-if-one-exists: true
ignore-test-failures: true
timezone: 'europe/rome'

- name: Fail if there were errors in the postman tests
if: steps.process-postman.outputs.test-outcome == 'Failed'
run: |
echo "There were postman failures."
exit 1
- name: Upload result.html
uses: actions/upload-artifact@v3
with:
name: html-report
path: src/test/resources/integration-test/output/result.html

- name: Build, tag, and push docker image to Amazon ECR
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
Expand Down
30 changes: 27 additions & 3 deletions .github/workflows/build-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ defaults:
run:
shell: bash

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
permissions: write-all

jobs:
build:
Expand Down Expand Up @@ -47,6 +45,31 @@ jobs:
run: |
mvn package -Pnative -Dquarkus.application.name=atm-layer-model -Dquarkus.profile=prod
- name: Create Status check based on postman results
id: process-postman
uses: im-open/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
results-file: src/test/resources/integration-test/output/result.json
report-name: 'Postman ${{ github.run_number }}'
create-status-check: true
create-pr-comment: true
update-comment-if-one-exists: true
ignore-test-failures: true
timezone: 'europe/rome'

- name: Fail if there were errors in the postman tests
if: steps.process-postman.outputs.test-outcome == 'Failed'
run: |
echo "There were postman failures."
exit 1
- name: Upload result.html
uses: actions/upload-artifact@v3
with:
name: html-report
path: src/test/resources/integration-test/output/result.html

- name: Build, tag, and push docker image to Amazon ECR
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
Expand All @@ -56,3 +79,4 @@ jobs:
docker build -f src/main/java/it/gov/pagopa/atmlayer/service/model/docker/Dockerfile.native -t $REGISTRY/$REPOSITORY:$IMAGE_TAG . \
--build-arg QUARKUS_PROFILE=prod \
--build-arg APP_NAME=atm-layer-model
Loading

0 comments on commit 2d54e66

Please sign in to comment.