Skip to content

Commit

Permalink
Merge pull request #1947 from mrpetrbartos/report-on-release
Browse files Browse the repository at this point in the history
Generate Ibutsu report on release
  • Loading branch information
Hyperkid123 authored Dec 13, 2023
2 parents bdbaaf5 + acf0946 commit 511d578
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 9 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/reporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Upload results to Ibutsu
on:
pull_request:
branches:
- master
types:
[closed]
jobs:
upload:
if: |
contains(github.event.pull_request.labels.*.name, 'release') ||
contains(github.event.pull_request.labels.*.name, 'release minor')
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install required dependencies
run: npm ci
- name: Run the tests
run: cd ${{ github.workspace }}/packages/components && npm run test:ct && npx merge-results -c cypress.config.ts
- name: Login to Quay
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Pull the uploader image
run: podman pull quay.io/cloudservices/iqe-artifact-uploader-s3:latest
- name: Upload the results
run: |
podman run -e AWS_BUCKET=${{ secrets.AWS_BUCKET }} -e AWS_REGION=${{ secrets.AWS_REGION }} \
-e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} -e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \
-v ${{ github.workspace }}/ibutsu-report:/results quay.io/cloudservices/iqe-artifact-uploader-s3:latest .
37 changes: 29 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"jest-canvas-mock": "^2.4.0",
"jest-environment-jsdom": "^29.6.2",
"lerna": "^5.6.2",
"mocha-ibutsu-reporter": "^0.0.1",
"mocha-ibutsu-reporter": "^0.0.2",
"mutation-observer": "^1.0.3",
"node-sass-package-importer": "^5.3.2",
"prettier": "^2.7.1",
Expand Down

0 comments on commit 511d578

Please sign in to comment.