fix #24
This file contains 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
# SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <[email protected]> | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Lint | |
on: [push, pull_request] | |
jobs: | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Get Flutter version from pubspec | |
run: | | |
set -e | |
FLUTTER_VERSION=$(cat pubspec.yaml | grep 'flutter:' | head -n 1 | awk '{ print $2 }' | tr -d '"' | cut -d "=" -f 2) | |
echo "FLUTTER_VERSION=${FLUTTER_VERSION}" >> $GITHUB_ENV | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
cache: true | |
- name: Analyze | |
run: flutter analyze | |
REUSE-Licensing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: REUSE Compliance Check | |
uses: fsfe/reuse-action@v1 |