refactor: build.yaml would pass on the hash of madara bin to use (WIP) #1510
This file contains 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: Workflow - Pull Request | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, reopened, ready_for_review] | |
concurrency: | |
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
permissions: | |
pull-requests: write | |
jobs: | |
changelog: | |
name: Enforce CHANGELOG | |
if: github.event.pull_request.draft == false | |
uses: ./.github/workflows/changelog.yml | |
linters: | |
name: Run linters | |
if: github.event.pull_request.draft == false | |
uses: ./.github/workflows/linters.yml | |
needs: changelog | |
rust_check: | |
name: Run check | |
if: github.event.pull_request.draft == false | |
uses: ./.github/workflows/rust-check.yml | |
needs: changelog | |
linters_cargo: | |
name: Run Cargo linters | |
if: github.event.pull_request.draft == false | |
uses: ./.github/workflows/linters-cargo.yml | |
needs: rust_check | |
coverage: | |
name: Run Coverage | |
if: github.event.pull_request.draft == false | |
uses: ./.github/workflows/coverage.yml | |
needs: changelog | |
secrets: inherit | |
build: | |
name: Build Madara | |
uses: ./.github/workflows/build.yml | |
needs: changelog |