Skip to content

chore(settings): πŸ” enable git.alwaysSignOff #6

chore(settings): πŸ” enable git.alwaysSignOff

chore(settings): πŸ” enable git.alwaysSignOff #6

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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Cache dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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 }}