Skip to content

Commit

Permalink
ci: Add automated testing and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SandPod committed May 9, 2024
1 parent 7ac6a86 commit 32cdc9c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CLI Tools CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
dart_format:
name: Dart format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/[email protected]
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
dart_analyze:
name: Dart Analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/[email protected]
- run: dart pub get
- run: dart analyze --fatal-infos
dart_test:
name: Dart Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/[email protected]
- run: dart test

0 comments on commit 32cdc9c

Please sign in to comment.