Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: replace linter #38

Merged
merged 2 commits into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
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
39 changes: 21 additions & 18 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ name: Linter
#

on:
pull_request:
push:
branches:
- master
tags:
- v*
pull_request_target:
branches: [master, main]
workflow_dispatch:
inputs:
vac:
description: 'set VALIDATE_ALL_CODEBASE'
required: false
default: 'false'


jobs:
linter:
name: Lint Code Base
name: Lint Code Base
runs-on: ubuntu-latest

steps:
Expand All @@ -27,13 +26,17 @@ jobs:
with:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter/slim@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '2.10.3'
channel: 'stable'
cache: true
cache-key: flutter
cache-path: ${{ runner.tool_cache }}/flutter

- name: Disable analytics
run: flutter config --no-analytics

LINTER_RULES_PATH: /.github/linters
VALIDATE_JSCPD: false
VALIDATE_GITHUB_ACTIONS: false
- name: Flutter Analyze
run: flutter analyze --fatal-infos --fatal-warnings
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Pull Request - CI

on:
pull_request:
pull_request_target:
paths-ignore:
- '**.md'
- 'app/src/main/res/**/strings.xml'
Expand Down