Build #363
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: Build | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
schedule: | |
- cron: "0 13 * * *" | |
jobs: | |
pyramid_lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
defaults: | |
run: | |
working-directory: ./packages/pyramid_lint | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- name: Install Flutter and Dart SDK | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
cache: true | |
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | |
- name: Show Dart SDK version | |
run: dart --version | |
- name: Show Flutter SDK version | |
run: flutter --version | |
- name: Install Dependencies | |
run: flutter pub get | |
- name: Show outdated packages | |
run: flutter pub outdated | |
- name: Check formating | |
run: dart format --output=none --set-exit-if-changed ./lib | |
- name: Analyze | |
run: flutter analyze | |
pyramid_lint_test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
defaults: | |
run: | |
working-directory: ./packages/pyramid_lint_test | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- name: Install Flutter and Dart SDK | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
cache: true | |
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | |
- name: Show Dart SDK version | |
run: dart --version | |
- name: Show Flutter SDK version | |
run: flutter --version | |
- name: Install Dependencies | |
run: flutter pub get | |
- name: Show outdated packages | |
run: flutter pub outdated | |
- name: Check formating | |
run: dart format --output=none --set-exit-if-changed ./test | |
- name: Analyze | |
run: flutter analyze | |
- name: Install custom_lint | |
run: dart pub global activate custom_lint | |
- name: Run custom_lint | |
run: custom_lint | |
- name: Run tests | |
run: dart test |