ci: add test workflow

This commit is contained in:
Tien Do Nam
2023-01-09 23:52:04 +01:00
parent e0ee4833f6
commit 1b32ad4376
2 changed files with 28 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.10'
channel: 'stable'
- name: Dependencies
run: flutter pub get
- name: Build generated files
run: flutter pub run build_runner build -d
- name: Analyze
run: flutter analyze
- name: Test
run: flutter test
+2
View File
@@ -1,5 +1,7 @@
# LocalSend
![ci](https://github.com/localsend/localsend/actions/workflows/ci.yml/badge.svg)
Links: [Homepage](https://localsend.org)
| [Play Store](https://play.google.com/store/apps/details?id=org.localsend.localsend_app)
| [App Store](https://apps.apple.com/us/app/localsend/id1661733229)