Add Detekt static analysis to CI pipeline #156
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: CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| format: | |
| name: Check Formatting | |
| uses: ./.github/workflows/_format.yml | |
| copyright: | |
| name: Check Copyright Headers | |
| uses: ./.github/workflows/_copyright.yml | |
| detekt: | |
| name: Static Analysis | |
| uses: ./.github/workflows/_detekt.yml | |
| test: | |
| name: Unit Tests | |
| needs: [format, copyright, detekt] | |
| uses: ./.github/workflows/_test.yml | |
| coverage: | |
| name: Test Coverage | |
| needs: [format, copyright, detekt] | |
| uses: ./.github/workflows/_coverage.yml | |
| docs: | |
| name: Documentation | |
| needs: [format, copyright, detekt] | |
| uses: ./.github/workflows/_docs.yml | |
| build-library: | |
| name: Build Library | |
| needs: [format, copyright, detekt, test, coverage, docs] | |
| uses: ./.github/workflows/_build-library.yml | |
| build-examples: | |
| name: Build Examples | |
| needs: [format, copyright, detekt, test, coverage, docs] | |
| uses: ./.github/workflows/_build-examples.yml | |
| instrumented-test: | |
| name: Instrumentation Tests | |
| if: github.event_name == 'pull_request' | |
| uses: ./.github/workflows/_instrumentation.yml | |