Create unit tests for repository #21
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: validate | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| analyze: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📚 Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: 🐦 Setup Dart | |
| uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: stable | |
| - name: 📦 Get dependencies | |
| run: dart pub get | |
| - name: 🔧 Generate mocks | |
| run: dart run build_runner build --delete-conflicting-outputs | |
| - name: 📝 Format | |
| run: ./scripts/format.sh | |
| - name: 📊 Analyze | |
| run: ./scripts/analyze.sh | |
| - name: 🧪 Test | |
| run: dart test --coverage=coverage | |
| - name: 🔎 Check Publish Warnings | |
| run: dart pub publish --dry-run |