-
-
Notifications
You must be signed in to change notification settings - Fork 13
30 lines (24 loc) · 816 Bytes
/
code_quality.yml
File metadata and controls
30 lines (24 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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:
code_quality:
name: Check source code quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dart-lang/setup-dart@v1
# Get dart dependencies.
- name: Install dependencies
run: dart pub get --no-example
# Statically analyze the Dart code for any errors.
- name: Analyze project source
run: dart analyze lib bin
# Check for any formatting issues in the code.
- name: Verify formatting
run: dart format --set-exit-if-changed lib bin