Skip to content

ci: add bug request and feature request templates #24

ci: add bug request and feature request templates

ci: add bug request and feature request templates #24

name: "Pull Request Checks"
on:
pull_request:
jobs:
##
# install
##
install:
name: "Install"
runs-on: ubuntu-latest
steps:
- name: "πŸ›Ž Checkout"
uses: actions/checkout@v4
- name: "πŸ”§ Setup"
uses: ./.github/actions/use-flutter-dependencies
##
# validation
##
validate_pr_title:
name: "Validate PR Title"
runs-on: ubuntu-latest
steps:
- name: "πŸ›Ž Checkout"
uses: actions/checkout@v4
- name: "πŸ”§ Setup"
uses: ./.github/actions/use-flutter-dependencies
- name: "βœ… Validate"
run: echo ${{ github.event.pull_request.title }} | dart run commitlint_cli
##
# build
##
build_android:
name: "Build Android"
needs: [install, validate_pr_title]
runs-on: ubuntu-latest
environment: development
steps:
- name: "πŸ›Ž Checkout"
uses: actions/checkout@v4
- name: "πŸ”§ Setup"
uses: ./.github/actions/use-flutter-dependencies
- name: "πŸ—οΈ Build APK"
run: flutter build apk --debug
- name: "πŸ—οΈ Build AppBundle"
run: flutter build aab --debug
# build_ios:
# name: "Build iOS"
# needs: [validate_pr_title]
# runs-on: macos-latest
# environment: development
# steps:
# - name: "πŸ›Ž Checkout"
# uses: actions/checkout@v4
# - name: "πŸ”§ Setup"
# uses: ./.github/actions/use-flutter-dependencies
# - name: "πŸ—οΈ Build ios"
# run: flutter build ios --release --no-codesign
tests:
name: "Tests"
needs: [install, validate_pr_title]
runs-on: ubuntu-latest
environment: development
steps:
- name: "πŸ›Ž Checkout"
uses: actions/checkout@v4
- name: "πŸ”§ Setup"
uses: ./.github/actions/use-flutter-dependencies
- name: "πŸ§ͺ Test"
run: flutter test