Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

feat: added quality check workflow #2

Merged
merged 1 commit into from
Dec 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Check source code quality

on:
pull_request:
branches: ["main"]

jobs:
lint:
name: Check lints
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter --version

# Check for any formatting issues in the code.
- name: Verify formatting
run: dart format --set-exit-if-changed .

analyze:
name: Check code analysis
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter --version

# Get flutter dependencies.
- name: Install dependencies
run: flutter pub get

# Statically analyze the Dart code for any errors.
- name: Analyze project source
run: flutter analyze .