netglade_analysis 17: Dart 3.7.0, Flutter 3.29.0 #143
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 | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure FVM | |
uses: kuhnroyal/flutter-fvm-config-action@v3 | |
id: fvm-config-action | |
- name: Setup Flutter and Dart | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} | |
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }} | |
- name: Setup Melos | |
uses: bluefireteam/melos-action@v3 | |
- name: Format | |
run: dart format --line-length 120 --set-exit-if-changed . | |
- name: Dart Analyze | |
run: melos run lint:dart | |
- name: Get DCM version | |
id: dcm-version | |
run: | | |
dcmVersion=$(cat dcm_global.yaml | grep version | cut -d' ' -f2 | sed -r 's/"//g') | |
echo "DCM_VERSION=$dcmVersion" >> "$GITHUB_OUTPUT" | |
- name: Install DCM | |
uses: CQLabs/setup-dcm@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
version: ${{ steps.dcm-version.outputs.DCM_VERSION }} | |
- name: Run DCM | |
uses: CQLabs/dcm-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
ci-key: ${{ secrets.DCM_KEY }} | |
email: ${{ secrets.DCM_EMAIL }} | |
folders: packages/netglade_analysis | |
fatal-found: true | |
- name: Test | |
run: melos run test | |
- name: Dry Publish Packages | |
run: melos publish --dry-run -y |