mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-24 20:09:30 +00:00
feat: add GitHub Actions workflow for Flutter testing and APK build
This commit is contained in:
parent
5c9273c812
commit
ef134af1fc
1 changed files with 41 additions and 0 deletions
41
.github/workflows/flutter_test.yaml
vendored
Normal file
41
.github/workflows/flutter_test.yaml
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
name: Flutter Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Checkout shelfsdk
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: Dr-Blank/shelfsdk
|
||||
path: ./shelfsdk
|
||||
|
||||
- name: Set Up Java
|
||||
uses: actions/setup-java@v3.12.0
|
||||
with:
|
||||
distribution: "oracle"
|
||||
java-version: "17"
|
||||
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
# - name: Run tests
|
||||
# run: flutter test
|
||||
|
||||
- name: Build APK
|
||||
run: flutter build apk --release
|
||||
Loading…
Add table
Add a link
Reference in a new issue