ci: Check app builds on pull requests #35
This file contains hidden or 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: Linting | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/dependencies | |
key: ${{ runner.os }}-dependencies-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-dependencies- | |
- name: Setup Flutter | |
uses: subosito/[email protected] | |
with: | |
channel: stable | |
flutter-version: 3.19.4 | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Run analyzer (lint) | |
run: flutter analyze |