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
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

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

jobs:
test:
runs-on: ubuntu-latest

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

- name: Setup Dart
uses: dart-lang/setup-dart@v1

- name: Install workspace deps
run: dart pub get

- name: Activate Melos
run: |
dart pub global activate melos 7.3.0
echo "$HOME/.pub-cache/bin" >> "$GITHUB_PATH"

- name: Bootstrap
run: melos bootstrap

- name: Analyze
run: melos run analyze --no-select

- name: Test
run: melos run test --no-select
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish

on:
workflow_dispatch:
push:
tags:
- "v*.*.*"

concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: false

jobs:
publish:
runs-on: ubuntu-latest

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

- name: Setup Dart
uses: dart-lang/setup-dart@v1

- name: Install workspace deps
run: dart pub get

- name: Activate Melos
run: |
dart pub global activate melos 7.3.0
echo "$HOME/.pub-cache/bin" >> "$GITHUB_PATH"

- name: Bootstrap
run: melos bootstrap

- name: Test
run: melos run test --no-select

- name: Configure pub.dev credentials
env:
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
run: |
test -n "$PUB_CREDENTIALS"
mkdir -p "$HOME/.config/dart"
printf '%s' "$PUB_CREDENTIALS" > "$HOME/.config/dart/pub-credentials.json"

- name: Publish packages
run: melos publish --no-dry-run --yes
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ doc/api/

.flutter-plugins
.flutter-plugins-dependencies

.idea/
*.iml
*.ipr
*.iws
Loading