Skip to content

update: build

update: build #52

Workflow file for this run

name: Code QL
on:
push:
branches: ["main"]
jobs:
analyze:
name: Analyze Dart Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
# flutter-version: 3.19.0
cache: true
# optional parameters follow
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache of dart pub get dependencies
pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
- uses: bluefireteam/melos-action@v3
- name: Activate melos
run: |
dart pub global activate melos
- name: Bootstrap melos
run: melos bs
- name: Analyze package
run: melos exec -- flutter analyze --no-fatal-infos --no-fatal-warnings
format:
name: Format Dart Code
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter --version
- uses: bluefireteam/melos-action@v3
- name: Activate melos
run: |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
dart pub global activate melos 2.9.0
- name: Bootstrap melos
run: melos bs
- name: Make validate-formatting script executable
run: chmod +x ./.github/workflows/scripts/validate-formatting.sh
- name: Validate formatting
run: |
melos exec -- dart format -o write .
./.github/workflows/scripts/validate-formatting.sh
# test:
# name: Test Dart Code
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: subosito/flutter-action@v2
# with:
# channel: beta
# - name: Activate melos
# run: |
# echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
# dart pub global activate melos 2.9.0
# - name: Bootstrap melos
# run: melos bs
# - name: Run tests
# run: melos exec --dir-exists=test -- flutter test