Skip to content

chore: move release action into composite action #135

chore: move release action into composite action

chore: move release action into composite action #135

Workflow file for this run

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 .