Skip to content

chore(deps): bump actions/checkout from 4.1.5 to 4.1.6 #109

chore(deps): bump actions/checkout from 4.1.5 to 4.1.6

chore(deps): bump actions/checkout from 4.1.5 to 4.1.6 #109

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.4"
permissions:
contents: read
jobs:
build:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- 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@f0ead981b4d9a35b37f30d36160575d60931ec30 # v1.6.4
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@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}