Skip to content

Instantly share code, notes, and snippets.

@kawainime
Created September 2, 2024 23:01
Show Gist options
  • Save kawainime/909f30930f3eeab5bbdde383a076bdf4 to your computer and use it in GitHub Desktop.
Save kawainime/909f30930f3eeab5bbdde383a076bdf4 to your computer and use it in GitHub Desktop.
Flutter dev
# This is a basic workflow to help you get started with Actions
name: Develop
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
branches: [develop]
pull_request:
branches: [develop]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
name: Analyze
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: Get packages
run: flutter packages get
- name: Analyze
run: flutter analyze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment