Merge pull request #174 from Workiva/use-gha-dart-oss #7
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: CI | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| - 'test_consume_*' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| build: | |
| uses: Workiva/gha-dart-oss/.github/workflows/build.yaml@v0.1.11 | |
| checks: | |
| uses: Workiva/gha-dart-oss/.github/workflows/checks.yaml@v0.1.11 | |
| with: | |
| format-check: false | |
| additional-checks: | | |
| no_entrypoint_imports | |
| unit-tests: | |
| uses: Workiva/gha-dart-oss/.github/workflows/test-unit.yaml@v0.1.11 | |
| testing-and-checks-complete: | |
| name: Testing and Checks Completed | |
| needs: [ build, checks, unit-tests ] | |
| if: ${{ !cancelled() && github.event_name == 'pull_request' || github.ref_type == 'tag' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: | | |
| if [ "${{ needs.checks.result }}" == "failure" ]; then | |
| echo "Some checks have failed. Please fix the issues and try again." | |
| exit 1 | |
| fi | |
| echo 'All Testing and checks have completed.' |