Terminology update: PowerSync cloud service -> PowerSync service #49
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: | |
- "**" | |
tags-ignore: | |
- "**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
- name: Install dependencies | |
run: dart pub get | |
- name: Check formatting | |
run: dart format --output=none --set-exit-if-changed . | |
- name: Lint | |
run: dart analyze | |
- name: Publish dry-run | |
run: dart pub publish --dry-run | |
- name: Check publish score | |
run: | | |
flutter pub global activate pana | |
flutter pub global run pana --no-warning --exit-code-threshold 0 | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
- name: Install dependencies | |
run: dart pub get | |
- name: Run tests | |
run: dart test |