Skip to content

Commit

Permalink
ci: add github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Aug 15, 2024
1 parent 634166f commit 87979c7
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
FLUTTER_VERSION: "3.22.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
run: flutter pub get
- name: Check format
run: dart format --set-exit-if-changed lib bin test
- name: Analyze
run: flutter analyze

test:
name: Test (newest Flutter version)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"

- name: Dependencies
run: flutter pub get
- name: Test
run: flutter test

0 comments on commit 87979c7

Please sign in to comment.