Skip to content

Commit

Permalink
chore: Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter committed Aug 31, 2024
1 parent c673e36 commit 386d83f
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: build

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

jobs:
# BEGIN LINTING STAGE
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: main
- uses: bluefireteam/melos-action@v3
- run: melos run format-check

analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: main
- uses: bluefireteam/melos-action@v3
- name: "Analyze with latest stable"
uses: invertase/github-action-dart-analyzer@v3
with:
fatal-infos: true

markdown-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install -g markdownlint-cli
- run: markdownlint . -p .markdownlintignore -c .markdownlint.yaml

dcm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: main
- uses: bluefireteam/melos-action@v3
- name: Install DCM
uses: CQLabs/setup-dcm@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Run DCM
run: dcm analyze .
# END LINTING STAGE

# BEGIN TESTING STAGE
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: main
cache: true
- uses: bluefireteam/melos-action@v3
- name: Run tests
run: melos test
# END TESTING STAGE

0 comments on commit 386d83f

Please sign in to comment.