chore(deps): bump actions/cache from 4.0.0 to 4.1.0 #326
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: Analysis CI | |
on: | |
push: | |
branches: [main] | |
# Ignore paths with no code to analyze. | |
# Disabled for OpenSSF scoring purposes (all commit pushes MUST be analyzed). | |
# paths-ignore: | |
# - ".github/dependabot.yaml" | |
# - ".github/workflows/build-cd.yaml" | |
# - ".github/workflows/scorecards-analysis.yaml" | |
# - ".vscode/**" | |
# - "android/**" | |
# - "docs/**" | |
# - "ios/**" | |
# - "macos/**" | |
# - "windows/**" | |
# - "**.md" | |
# - ".gitattributes" | |
# - ".gitignore" | |
# - "CODEOWNERS" | |
# - "LICENSE" | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, ready_for_review, reopened] | |
# paths-ignore: | |
# - ".github/dependabot.yaml" | |
# - ".github/workflows/build-cd.yaml" | |
# - ".github/workflows/scorecards-analysis.yaml" | |
# - ".vscode/**" | |
# - "android/**" | |
# - "docs/**" | |
# - "ios/**" | |
# - "macos/**" | |
# - "windows/**" | |
# - "**.md" | |
# - ".gitattributes" | |
# - ".gitignore" | |
# - "CODEOWNERS" | |
# - "LICENSE" | |
release: | |
types: [published] | |
env: | |
FLUTTER_SDK_VERSION: "3.7.8" | |
permissions: | |
contents: read | |
jobs: | |
analyze: | |
permissions: | |
checks: write # for coverallsapp/github-action to create new checks | |
contents: read # for actions/checkout to fetch code | |
name: Analyze | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: github.event.pull_request.draft == false | |
steps: | |
- uses: actions/checkout@b56e6a3d768b11aef1d4c73977caf6413c0d74c8 # v3 | |
- name: Cache dependencies | |
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0 | |
id: cache | |
with: | |
path: /opt/hostedtoolcache/flutter | |
key: ${{ runner.os }}-pubspec-${{ env.FLUTTER_SDK_VERSION }}-${{ hashFiles('**/pubspec.lock') }} | |
- uses: subosito/flutter-action@62f096cacda5168a3bd7b95793373be14fa4fbaf # v2.13.0 | |
with: | |
flutter-version: ${{ env.FLUTTER_SDK_VERSION }} | |
- name: Verify formatting | |
run: flutter format --output=none --set-exit-if-changed . | |
- name: Get dependencies | |
run: flutter pub get | |
- name: Analyze project source | |
run: flutter analyze --no-pub --fatal-infos | |
- name: Analyze Dart Code Metrics | |
run: flutter pub run dart_code_metrics:metrics analyze lib --fatal-style --fatal-performance | |
- name: Run tests | |
run: flutter test test/main.dart --no-pub --coverage | |
- name: Upload Coveralls | |
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # 2.2.3 | |
continue-on-error: true | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |