feat: dirty words #123
This file contains 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: Analyze | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
env: | |
CurseForge_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }} | |
jobs: | |
Analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache Dart | |
uses: actions/cache@v2 | |
with: | |
path: /opt/hostedtoolcache/dart-sdk | |
key: ${{ runner.os }}-dart-2.19.6 | |
# https://dart.dev/get-dart/archive | |
- uses: dart-lang/[email protected] | |
with: | |
sdk: 2.19.6 | |
- name: Install dependencies | |
run: | | |
dart pub get | |
dart pub global activate coverage | |
export PATH="$PATH":"$HOME/.pub-cache/bin" | |
- name: Start MongoDB 5.0 | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: 5.0 | |
- name: Dart Analyze | |
uses: invertase/github-action-dart-analyzer@v1 | |
with: | |
fatal-warnings: false | |
annotate: true | |
annotate-only: false | |
- name: Generate Coverage | |
run: | | |
dart test --coverage="coverage" --concurrency 1 | |
format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
file: coverage/lcov.info |