CI Check #351
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pull Request Checks | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - labeled | |
| - ready_for_review | |
| - synchronize | |
| jobs: | |
| check_commit: | |
| name: Check Commit 馃摑 | |
| runs-on: ubuntu-latest | |
| if: ${{ !github.event.pull_request.draft && contains( github.event.pull_request.labels.*.name, 'ready-to-merge') }} | |
| outputs: | |
| commit_message: ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref || github.ref_name }} | |
| lfs: true | |
| ssh-key: ${{ secrets.DEPLOY_KEY }} | |
| - name: Get Head Commit Message | |
| id: get_head_commit_message | |
| run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" | |
| pre_job: | |
| name: Pre Job 馃殌 | |
| runs-on: ubuntu-latest | |
| if: ${{ needs.check_commit.outputs.commit_message == 'Sync Dependencies - Auto Commit' }} | |
| needs: [ check_commit ] | |
| steps: | |
| - run: echo "Proceeding to checks..." | |
| web3_tests: | |
| name: Web3 tests 馃暩 | |
| uses: ChainSafe/web3.unity/.github/workflows/test.yaml@main | |
| needs: [ pre_job ] | |
| analyze_code: | |
| name: Analyze 馃 | |
| uses: ChainSafe/web3.unity/.github/workflows/codeql.yml@main | |
| needs: [ pre_job ] | |
| unity_tests: | |
| name: Unity Tests 馃И | |
| uses: ChainSafe/web3.unity/.github/workflows/unity_tests.yml@main | |
| needs: [ pre_job ] | |
| secrets: inherit | |
| documentation_check: | |
| name: Documentation Check 馃摎 | |
| uses: ChainSafe/web3.unity/.github/workflows/documentation_check.yml@main | |
| needs: [ pre_job ] | |
| duplicate_samples: | |
| name: Duplicate Samples 馃獮 | |
| if: ${{ (github.event.action == 'ready_for_review' || (!github.event.pull_request.draft && contains( github.event.pull_request.labels.*.name, 'ready-to-merge'))) && needs.check_commit.outputs.commit_message != 'Sync Dependencies - Auto Commit'}} | |
| uses: ChainSafe/web3.unity/.github/workflows/duplicate_samples.yaml@main | |
| needs: [ check_commit ] | |
| secrets: inherit | |
| sync_dependencies: | |
| name: Sync Dependencies 馃攧 | |
| uses: ChainSafe/web3.unity/.github/workflows/sync_dependencies.yaml@main | |
| needs: [ duplicate_samples ] | |
| secrets: inherit |