Merge pull request #9 from nfcim/codex/credential-metadata-only #73
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: Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} | |
| strategy: | |
| matrix: | |
| sdk: [stable, beta] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: ${{ matrix.sdk }} | |
| - run: dart pub get | |
| - name: Check generated files | |
| run: | | |
| dart run build_runner build --delete-conflicting-outputs | |
| if ! git diff --quiet --exit-code; then | |
| echo "Generated files are out of sync. Run: dart run build_runner build --delete-conflicting-outputs" | |
| exit 1 | |
| fi | |
| - run: dart format --output=none --set-exit-if-changed . | |
| - run: dart analyze | |
| - run: dart test | |
| - run: dart doc | |
| - name: Upload generated dartdoc | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: docs-${{ matrix.sdk }} | |
| path: doc/ | |
| - name: Evaluate score with pana | |
| run: | | |
| dart pub global activate pana | |
| dart pub global run pana . | |
| # - name: Run example code | |
| # run: | | |
| # cd example | |
| # dart pub get | |
| # dart run lib/main.dart |