refactor pipelines #1
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: Analyze Workflow | |
on: | |
push: | |
pull_request_target: | |
branches: [main] | |
paths-ignore: | |
- 'scripts/**' | |
- 'website/**' | |
- 'assets/**' | |
jobs: | |
dcm: | |
name: DCM | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout mix repo | |
uses: actions/checkout@v4 | |
- name: Setup FVM | |
uses: ./.github/actions/fvm/ | |
- name: Setup Melos | |
uses: bluefireteam/melos-action@v3 | |
- name: Run build runner | |
shell: bash | |
run: melos run brb | |
- name: Install DCM | |
if: ${{ inputs.run-dcm }} | |
uses: CQLabs/setup-dcm@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
folders: packages/*/lib | |
ci_key: oss | |
email: oss | |
fatal_style: true | |
fatal_performance: true | |
fatal_warnings: true | |
- name: dart analyze | |
run: melos run --no-select analyze | |
shell: bash | |
- name: Run custom_lint | |
run: melos run custom_lint_analyze | |
shell: bash | |