Skip to content

Commit

Permalink
Workflow for validating the PR (#22)
Browse files Browse the repository at this point in the history
- Added workflow for validating the PR
  - Check formating
  - Analyze
  - Run tests
  • Loading branch information
abobija authored Apr 28, 2024
1 parent 2d96ed0 commit 6ebfae4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/validate-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Validate PR

on:
pull_request:
types: [opened, synchronize, ready_for_review, reopened]

jobs:
validate:
name: Validate PR
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1

- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze
- run: dart test

0 comments on commit 6ebfae4

Please sign in to comment.