feat: versioning #54
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: [dev] | |
| pull_request: | |
| branches: [dev] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| analyze: | |
| name: Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: stable | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Check formatting | |
| run: dart format . -l 120 --output=none --set-exit-if-changed . | |
| - name: Analyze | |
| run: dart analyze --fatal-infos | |
| test: | |
| name: Tests (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: stable | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Run tests | |
| if: matrix.os != 'ubuntu-latest' | |
| run: dart test | |
| - name: Run tests with coverage | |
| if: matrix.os == 'ubuntu-latest' | |
| run: dart test --coverage=coverage | |
| - name: Convert coverage to lcov | |
| if: matrix.os == 'ubuntu-latest' | |
| run: dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib | |
| - name: Upload coverage to Codecov | |
| if: matrix.os == 'ubuntu-latest' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage/lcov.info | |
| fail_ci_if_error: false | |
| slug: nexlabstudio/stardust | |
| token: ${{ secrets.CODECOV_TOKEN }} |