Skip to content

Commit

Permalink
chore: add basic workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Xazin committed Apr 16, 2024
1 parent 140d1ff commit 9a3794f
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Analyze code

on:
push:
branches:
- main
paths:
- "packages/**"

pull_request:
types: [opened, synchronize]
branches:
- main
paths:
- "packages/**"

workflow_dispatch:

env:
FLUTTER_VERSION: "3.19.0"

jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Fetch code from repository
uses: actions/checkout@v4

- name: Setup the Flutter environment
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
flutter-version: ${{ env.FLUTTER_VERSION }}

- name: Setup Melos
run: dart pub global activate melos

- name: Get Flutter dependencies
run: melos get

- name: Check for formatting issues
run: melos format

- name: Run the analyzer
run: melos analyze
11 changes: 11 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Commit messages lint
on: [pull_request, push]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
14 changes: 14 additions & 0 deletions packages/appflowy_editor_plugins/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ description: "A collection of plugins for the AppFlowy Editor."
version: 0.0.1
homepage: https://github.com/AppFlowy-IO/appflowy-plugins

topics:
- editor
- appflowy
- plugins
- widgets

platforms:
android:
ios:
linux:
macos:
windows:
web:

# Can only publish when other packages are published,
# so there is no reliance on git.
publish_to: "none"
Expand Down

0 comments on commit 9a3794f

Please sign in to comment.