Skip to content

Merge pull request #1 from heacare/dependabot/github_actions/actions/… #6

Merge pull request #1 from heacare/dependabot/github_actions/actions/…

Merge pull request #1 from heacare/dependabot/github_actions/actions/… #6

Workflow file for this run

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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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: