Skip to content

refactor(note): rewrite fromRawAccidentals into `KeySignature.major… #224

refactor(note): rewrite fromRawAccidentals into `KeySignature.major…

refactor(note): rewrite fromRawAccidentals into `KeySignature.major… #224

Workflow file for this run

name: Analysis CI
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, ready_for_review, reopened]
env:
DART_SDK_VERSION: "2.19.6"
permissions:
contents: read
jobs:
build:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- name: Cache dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
id: cache
with:
path: ~/.pub-cache/hosted
key: ${{ runner.os }}-pubspec-${{ env.DART_SDK_VERSION }}-${{ hashFiles('**/pubspec.yaml') }}
restore-keys: |
${{ runner.os }}-pubspec-${{ env.DART_SDK_VERSION }}-
${{ runner.os }}-pubspec-
${{ runner.os }}-
- name: Set up Dart
uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f # v1.5.0
with:
sdk: ${{ env.DART_SDK_VERSION }}
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Install dependencies
run: dart pub get
- name: Analyze project source
run: dart analyze --fatal-infos
- name: Analyze Dart Code Metrics
run: dart run dart_code_metrics:metrics analyze lib --fatal-style --fatal-performance
- name: Run tests
run: |
dart pub global activate coverage
dart test test/main.dart --coverage=coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
- name: Coveralls upload
uses: coverallsapp/github-action@67662d24394fd74bffcf7b462d1b432814159afd # v2.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}