| name: package:mime | |
| permissions: | |
| contents: read | |
| on: | |
| schedule: | |
| # “At 00:00 (UTC) on Sunday.” | |
| - cron: '0 0 * * 0' | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/mime.yaml' | |
| - 'pkgs/mime/**' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/mime.yaml' | |
| - 'pkgs/mime/**' | |
| defaults: | |
| run: | |
| working-directory: pkgs/mime/ | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| sdk: [3.2, dev] | |
| steps: | |
| # These are the latest versions of the github actions; dependabot will | |
| # send PRs to keep these up-to-date. | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| persist-credentials: false | |
| - uses: dart-lang/setup-dart@7654d458321ee25acccccfdb86cd48bd95768ff1 | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Verify formatting | |
| run: dart format --output=none --set-exit-if-changed . | |
| - name: Analyze project source | |
| run: dart analyze --fatal-infos | |
| - name: Run tests | |
| run: dart test | |
| - name: "Re run 'dart tool/regenerate_tables.dart' to update doc/media_types.md" | |
| run: dart tool/regenerate_tables.dart | |
| - run: git diff --exit-code |