Skip to content

refactor(scalable): ♻️ extract isEnharmonicWith extension method (#… #1150

refactor(scalable): ♻️ extract isEnharmonicWith extension method (#…

refactor(scalable): ♻️ extract isEnharmonicWith extension method (#… #1150

Workflow file for this run

name: Analysis CI
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
env:
DART_SDK_VERSION: "3.3"
permissions:
contents: read
jobs:
build:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Cache dependencies
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.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@fedb1266e91cf51be2fdb382869461a434b920a3 # v1.6.2
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: 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@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}