2022-11-06 06:29:16 +00:00
|
|
|
name: Check Linter Rules
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
test:
|
2022-11-06 08:46:16 +00:00
|
|
|
if: github.event.pull_request.draft == 'false'
|
2022-11-06 06:29:16 +00:00
|
|
|
name: Check the source code
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-11-06 08:28:13 +00:00
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ${{ runner.tool_cache }}/flutter
|
|
|
|
key: flutter-3.0.0-stable
|
2022-11-06 06:29:16 +00:00
|
|
|
# Setup the flutter environment.
|
|
|
|
- uses: subosito/flutter-action@v2.3.0
|
|
|
|
with:
|
|
|
|
channel: 'stable'
|
|
|
|
flutter-version: '3.0.0'
|
|
|
|
|
|
|
|
# Fetch sub modules
|
|
|
|
- run: git submodule update --init --recursive
|
|
|
|
|
|
|
|
# Get flutter dependencies.
|
|
|
|
- name: Install packages
|
|
|
|
run: flutter pub get
|
|
|
|
|
|
|
|
- name: Run Linter
|
2022-11-06 08:23:50 +00:00
|
|
|
run: flutter analyze --no-fatal-infos
|
2022-11-06 06:29:16 +00:00
|
|
|
# - name: Run Test :sed:
|
|
|
|
# run: flutter test
|