feat!: (BREAKING) v2.1.0, attempt to fix waa edge-case, upgrade dependencies #49
Workflow file for this run
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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
kana_kit: | |
runs-on: ubuntu-latest | |
container: | |
image: dart:3.5.0 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Format | |
run: dart format --output none --set-exit-if-changed . | |
- name: Analyze | |
run: dart analyze --fatal-infos --fatal-warnings lib test | |
- name: Test | |
run: dart run coverage:test_with_coverage | |
- name: Dry run publish | |
run: | | |
echo "Copy credentials" | |
mkdir -p ~/.pub-cache | |
echo "$CREDENTIAL_JSON" > ~/.pub-cache/credentials.json | |
echo "Run pub publish --dry-run" | |
dart pub publish --dry-run | |
env: | |
CREDENTIAL_JSON: ${{ secrets.CREDENTIAL_JSON }} | |
- name: Publish codecov | |
shell: bash | |
run: bash <(curl -s https://codecov.io/bash) | |
- name: Check codecov | |
uses: VeryGoodOpenSource/very_good_coverage@v2 | |
with: | |
path: ./coverage/lcov.info | |
exclude: '**/*.g.dart lib/src/models/romanization/**' | |
min_coverage: 99 |