Last active
February 3, 2023 17:00
-
-
Save SteveOye/77d2d6727352db146b0462300d466f3a to your computer and use it in GitHub Desktop.
Github action
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
name: Flutter | |
on: #events (push and pull_request) | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: #here we specify the jobs - We could have multiple jobs | |
build: #name it something meaningful | |
runs-on: macos-latest #runner: select a machine to use | |
//put down the steps | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' | |
- name: Install dependencies | |
run: flutter pub get # action | |
- name: Run tests | |
run: flutter test | |
- name: Build android apk and appBundle | |
run: flutter build apk | |
- name: Build android ios | |
run: flutter build ios --releasee --no-codesign | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment