mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-03-12 02:06:17 -05:00
ci: add dartfmt lint
This commit is contained in:
20
.github/workflows/lint.yml
vendored
Normal file
20
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
name: lint
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: google/dart:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: pub get
|
||||
- run: \
|
||||
output=$(dartfmt --dry-run lib/**/*.dart)
|
||||
if [ -z $output]
|
||||
then exit 0
|
||||
else
|
||||
exit 1
|
||||
Reference in New Issue
Block a user