ci: add basic workflows #1
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"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/[email protected] | |
- name: Get Dependencies | |
run: dart pub get | |
- name: Analyze | |
run: dart analyze . | |
- name: Check Format | |
run: dart format . --output=none --set-exit-if-changed | |
- name: Run tests | |
run: dart test --reporter expanded |