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 97378c4
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Analyze code

on:
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
15 changes: 15 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
name: appflowy_plugins
publish_to: "none"
homepage: https://github.com/AppFlowy-IO/appflowy-plugins

topics:
- editor
- appflowy
- plugins
- widgets

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

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit 97378c4

Please sign in to comment.