Skip to content

feat: dirty words

feat: dirty words #123

Workflow file for this run

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/setup-dart@v1.3
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/mongodb-github-action@1.7.0
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