Fix/cicd #104
Workflow file for this run
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: Develop PR Checks | |
on: | |
pull_request: | |
branches: [develop] | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
jobs: | |
is_draft: | |
if: github.event.pull_request.draft == true | |
name: Check if PR is a draft | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if PR is a draft | |
run: echo "This PR is a draft" | |
check_formatting: | |
name: Formatting | |
if: github.event.pull_request.draft != true | |
uses: ./.github/workflows/check_formatting.yml | |
check_compilation: | |
name: Compilation | |
if: github.event.pull_request.draft != true | |
uses: ./.github/workflows/check_neko-top.yml | |
with: | |
neko-version: "develop" | |
check_complete: | |
name: Develop PR Ready | |
if: github.event.pull_request.draft != true && ${{ always() }} | |
needs: | |
- check_formatting | |
- check_compilation | |
env: | |
check_formatting: ${{ needs.check_formatting.result }} | |
check_compilation: ${{ needs.check_compilation.result }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: All checks passed | |
run: | | |
if [ "$check_formatting" != "success" ]; then | |
echo "Formatting check failed" | |
exit 1 | |
else if [ "${{ inputs.check_compilation }}" != "success" ]; then | |
echo "Compilation check failed" | |
exit 1 | |
fi | |
echo "All checks passed" |