Created
December 2, 2021 09:47
-
-
Save mondoktamas/f9acbf50580d16bf5b1e0e1ab593c3c7 to your computer and use it in GitHub Desktop.
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
# This is a basic workflow to help you get started with Actions | |
name: Test & Analyze | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the dev branch | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- develop | |
paths: | |
- 'lib/**' | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
test_analyse: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Flutter action | |
uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' | |
- name: Run pub get | |
run: flutter packages get | |
- name: Run Static Code Analysis | |
run: flutter analyze . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment