forked from RedHatInsights/frontend-components
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 1.18 KB
/
reporter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Upload results to Ibutsu
on:
pull_request:
branches:
- master
types:
- closed
jobs:
upload:
if: github.event.pull_request.merged == true
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 .