Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 1 addition & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: CI

on:
push:
branches:
- dev
pull_request:
branches:
- main
Expand Down Expand Up @@ -32,26 +29,4 @@ jobs:
run: flutter analyze

- name: Run tests
run: flutter test

build-example:
name: Build Example
runs-on: ubuntu-latest
needs: analyze

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable

- name: Get dependencies
working-directory: example
run: flutter pub get

- name: Build web
working-directory: example
run: flutter build web
run: flutter test
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ jobs:

- name: Create tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag v${{ steps.version.outputs.version }}
git push origin v${{ steps.version.outputs.version }}

- name: Publish to pub.dev
run: flutter pub publish --force
uses: dart-lang/setup-dart/publish@v1
Loading