| name: linter |
| |
| on: |
| schedule: |
| # “At 00:00 (UTC) on Sunday.” |
| - cron: '0 0 * * 0' |
| pull_request: |
| push: |
| branches: |
| - master |
| |
| env: |
| PUB_ENVIRONMENT: bot.github |
| |
| jobs: |
| build: |
| name: ${{ matrix.linter-bot }} |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| linter-bot: |
| - main |
| - coverage |
| - release |
| # re-enable when pana CI issues are resolved: https://github.com/dart-lang/linter/issues/2504 |
| # - pana_baseline |
| - benchmark |
| |
| steps: |
| - uses: actions/checkout@v2 |
| - uses: dart-lang/setup-dart@v1 |
| with: |
| sdk: dev |
| |
| - name: pub get |
| 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@v1.1.2 |
| with: |
| github-token: ${{ secrets.GITHUB_TOKEN }} |
| path-to-lcov: var/lcov.info |