Bump actions/cache from 3 to 4 #7
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: checks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dart: ['2.17.6'] | |
steps: | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ runner.tool_cache }}/dart-sdk | |
key: ${{ runner.os }}-dart-sdk-${{ matrix.dart }} | |
- uses: heacare/setup-dart@add-matcher | |
with: | |
sdk: ${{ matrix.dart }} | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ env.PUB_CACHE }} | |
key: ${{ runner.os }}-dart-pub-cache-${{ hashFiles('**/pubspec.yaml')}} | |
- run: dart pub get | |
- run: dart analyze . | sed 's/^ info/warning/g' | |
format: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dart: ['2.17.6'] | |
steps: | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ runner.tool_cache }}/dart-sdk | |
key: ${{ runner.os }}-dart-sdk-${{ matrix.dart }} | |
- uses: heacare/setup-dart@add-matcher | |
with: | |
sdk: ${{ matrix.dart }} | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ env.PUB_CACHE }} | |
key: ${{ runner.os }}-dart-pub-cache-${{ hashFiles('**/pubspec.yaml')}} | |
- run: dart pub get | |
- run: dart format . --output none --set-exit-if-changed | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dart: ['2.17.6'] | |
steps: | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ runner.tool_cache }}/dart-sdk | |
key: ${{ runner.os }}-dart-sdk-${{ matrix.dart }} | |
- uses: heacare/setup-dart@add-matcher | |
with: | |
sdk: ${{ matrix.dart }} | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ env.PUB_CACHE }} | |
key: ${{ runner.os }}-dart-pub-cache-${{ hashFiles('**/pubspec.yaml')}} | |
- run: dart pub get | |
- run: dart test . | |
# vim: set et ts=2 sw=2: |