Skip to content

Commit

Permalink
refactor(general): add running allure report flow after forge ci job (#…
Browse files Browse the repository at this point in the history
…1006)

* add running allure report flow after forge ci job

* add temp trigger for this branch

* try 1

* try 2

* try 3

* try 4

* add running after ci finishes

* try using forge run instead of ci run

* try using forge run instead of ci run for all possible in allure flow

* add forge setup step

* try 1

* try 2

* try 3

* try 4

* add forge install

* cleanup

* remove running allure after ci until allure flow changes are in main

* remove local running option

* remove unused vars
  • Loading branch information
oldGreg5 authored Oct 17, 2024
1 parent a848e87 commit b20c6f9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
ci:
uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.1.0
with:
forge_version: 0.2.1
forge_version: 0.2.1
57 changes: 16 additions & 41 deletions .github/workflows/generate-allure-report.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Allure Report Generation

on:
pull_request:
push:
branches: "main"
tags: ["*"]
workflow_call:

permissions:
contents: write
Expand All @@ -16,10 +13,6 @@ concurrency:
cancel-in-progress: true

env:
AWS_REGION: eu-central-1
AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci
EARTHLY_TARGET: docker
ECR_REGISTRY: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
ALLURE_REPORT_PATH: allure-report
COVERAGE_REPORT_PATH: coverage-report
REPORT_EXT: .junit-report.xml
Expand All @@ -32,60 +25,42 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Forge
uses: input-output-hk/catalyst-forge/actions/install@ci/v1.1.0
if: always()

- name: Setup CI
uses: input-output-hk/catalyst-ci/actions/setup@master
with:
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
aws_region: ${{ env.AWS_REGION }}
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}
uses: input-output-hk/catalyst-forge/actions/setup@master

- name: Get catalyst gateway unit test report
uses: input-output-hk/catalyst-ci/actions/run@master
uses: input-output-hk/catalyst-forge/actions/run@master
if: always()
continue-on-error: true
with:
earthfile: ./catalyst-gateway/
flags:
targets: build
target_flags:
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
artifact: "false"
path: ./catalyst-gateway+build

- name: Get schemathesis test report
uses: input-output-hk/catalyst-ci/actions/run@master
uses: input-output-hk/catalyst-forge/actions/run@master
if: always()
continue-on-error: true
with:
earthfile: ./catalyst-gateway/tests/schemathesis_tests
flags: --allow-privileged
targets: test-fuzzer-api
target_flags:
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
artifact: "false"
path: ./catalyst-gateway/tests/schemathesis_tests+test-fuzzer-api
target_args: --allow-privileged

- name: Get flutter unit test report
uses: input-output-hk/catalyst-ci/actions/run@master
uses: input-output-hk/catalyst-forge/actions/run@master
if: always()
continue-on-error: true
with:
earthfile: ./catalyst_voices/
flags:
targets: test-unit
target_flags:
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
artifact: "false"
path: ./catalyst_voices+test-unit

- name: Get python api test report
uses: input-output-hk/catalyst-ci/actions/run@master
uses: input-output-hk/catalyst-forge/actions/run@master
if: always()
continue-on-error: true
with:
earthfile: ./catalyst-gateway/tests/api_tests/
flags: --allow-privileged
targets: test
target_flags:
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
artifact: "false"
path: ./catalyst-gateway/tests/api_tests+test
target_args: --allow-privileged

- name: Collect and upload test reports
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit b20c6f9

Please sign in to comment.