feat : Create an example package for altfire_tracker #88
Workflow file for this run
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: code check | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
outputs: | |
flutter: ${{ steps.filter.outputs.flutter }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Filter by paths | |
uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
flutter: | |
- '**/android/**' | |
- '**/assets/**' | |
- '**/dart_defines/**' | |
- '**/golden_test/**' | |
- '**/ios/**' | |
- '**/lib/**' | |
- '**/test/**' | |
- '**/web/**' | |
- '**/analysis_options.yaml' | |
- '**/melos.yaml' | |
- '**/pubspec.yaml' | |
analyze: | |
needs: check | |
if: ${{ needs.check.outputs.flutter == 'true' && github.event_name != 'push' }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: Install Melos | |
uses: bluefireteam/melos-action@v3 | |
- name: Analyze packages | |
run: melos run analyze --no-select | |
- name: Check for the existence of unformatted files | |
run: melos run format:ci --no-select | |
test: | |
needs: check | |
if: needs.check.outputs.flutter == 'true' | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: Install Melos | |
uses: bluefireteam/melos-action@v3 | |
- name: Run package tests | |
run: melos run test:ci --no-select | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: coverage/lcov.info |