Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Generate Ibutsu report on release #1948

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/reporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Upload results to Ibutsu
on:
workflow_dispatch:
# pull_request:
# branches:
# - master
# types:
# [closed]
# workflow_dispatch:
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
Loading