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

chore(general): update nightly to forge #1530

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
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
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
version: "1.0.0"
project: name: "voices-wallet-automation-test"
project: {
name: "voices-wallet-automation-test"
ci: {
targets: {
"nightly-test": privileged: true
}
}
}
Loading