Skip to content

Commit

Permalink
chore: migrate nightly ci to forge
Browse files Browse the repository at this point in the history
  • Loading branch information
kukkok3 committed Jan 16, 2025
1 parent d1fdfcf commit a69ac48
Showing 1 changed file with 24 additions and 34 deletions.
58 changes: 24 additions & 34 deletions .github/workflows/nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
- cron: '0 0 * * *' # Runs every day at 00:00
workflow_dispatch:


permissions:
id-token: write
contents: write
Expand All @@ -16,63 +15,54 @@ 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
REPORT_EXT: .junit-report.xml
ALLURE_REPORT_PATH: nightly-allure-report

jobs:
ci_nightly:
uses: input-output-hk/catalyst-ci/.github/workflows/ci.yml@master
uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@ci/v1.5.1
with:
aws_ecr_registry: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
aws_role_arn: arn:aws:iam::332405224602:role/ci
aws_region: eu-central-1
forge_version: 0.8.0
nightly: true
secrets:
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
earthly_runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}

generate-test-reports:
name: Generate test reports
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup CI
uses: input-output-hk/catalyst-ci/actions/setup@master
- name: Install Forge
uses: input-output-hk/catalyst-forge/actions/install@ci/v1.5.3
with:
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
aws_region: ${{ env.AWS_REGION }}
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}
version: 0.8.0
if: always()

- name: Setup CI
uses: input-output-hk/catalyst-forge/actions/setup@ci/v1.5.3

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

- name: Get cardano wallet integration test report
uses: input-output-hk/catalyst-ci/actions/run@master
uses: input-output-hk/catalyst-forge/actions/run@ci/v1.5.3
if: always()
continue-on-error: true
with:
earthfile: ./catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation/
flags: --allow-privileged
targets: nightly-test
target_flags:
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
artifact: "false"
command: run
args: ./catalyst_voices/packages/libs/catalyst_cardano/catalyst_cardano/wallet-automation+nightly-test

- name: Get schemathesis test report
uses: input-output-hk/catalyst-forge/actions/run@ci/v1.5.3
if: always()
continue-on-error: true
with:
command: run
args: ./catalyst-gateway/tests/schemathesis_tests+nightly+test-fuzzer-api

- name: Collect and upload test reports
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -118,7 +108,7 @@ jobs:
repository: gh-pages-dir
branch: gh-pages
pull_args: --rebase -X ours

- name: Send Slack notification
if: ${{ always() && steps.allure.outputs.report_url }}
uses: slackapi/[email protected]
Expand Down

0 comments on commit a69ac48

Please sign in to comment.