| name: linter |
| |
| on: |
| schedule: |
| # “At 00:00 (UTC) on Sunday.” |
| - cron: '0 0 * * 0' |
| pull_request: |
| push: |
| branches: |
| - main |
| |
| env: |
| PUB_ENVIRONMENT: bot.github |
| |
| permissions: read-all |
| |
| jobs: |
| build: |
| permissions: |
| checks: write # for coverallsapp/github-action to create new checks |
| name: ${{ matrix.linter-bot }} |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| linter-bot: |
| - main |
| - coverage |
| - release |
| - pana_baseline |
| - benchmark |
| |
| steps: |
| - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 |
| - uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d |
| with: |
| sdk: dev |
| |
| - run: dart pub get |
| |
| - name: tool/bot.sh |
| env: |
| LINTER_BOT: ${{ matrix.linter-bot }} |
| run: ./tool/bot.sh |
| - name: upload coverage |
| if: matrix.linter-bot == 'coverage' |
| uses: coverallsapp/github-action@9ba913c152ae4be1327bfb9085dc806cedb44057 |
| with: |
| github-token: ${{ secrets.GITHUB_TOKEN }} |
| path-to-lcov: var/lcov.info |