wip #95
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
FLUTTER_VERSION: "3.24.3" | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: "stable" | |
- name: Dependencies | |
working-directory: rhttp | |
run: flutter pub get | |
- name: Check format | |
working-directory: rhttp | |
run: dart format --set-exit-if-changed lib bin test | |
- name: Analyze | |
working-directory: rhttp | |
run: flutter analyze | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: "stable" | |
- name: Dependencies | |
working-directory: rhttp | |
run: flutter pub get | |
- name: Test | |
working-directory: rhttp | |
run: flutter test |