mirror of
https://github.com/git-touch/git-touch
synced 2024-12-12 08:27:04 +01:00
ci: update lint scripts
This commit is contained in:
parent
5b3bc45db5
commit
b488b90f97
22
.github/workflows/deploy.yml
vendored
22
.github/workflows/deploy.yml
vendored
@ -1,22 +0,0 @@
|
||||
name: deploy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: subosito/flutter-action@v1
|
||||
with:
|
||||
channel: dev
|
||||
- run: |
|
||||
flutter config --enable-web
|
||||
flutter pub get
|
||||
flutter build web
|
||||
- uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
personal_token: ${{ secrets.PERSONAL_TOKEN }}
|
||||
publish_dir: ./build/web/
|
||||
external_repository: git-touch/git-touch.github.io
|
14
.github/workflows/lint.yml
vendored
14
.github/workflows/lint.yml
vendored
@ -1,14 +1,18 @@
|
||||
name: lint
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: google/dart:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: dartfmt --dry-run --set-exit-if-changed lib/*.dart lib/models/*.dart lib/scaffolds/*.dart lib/screens/*.dart lib/utils/*.dart lib/widgets/*.dart
|
||||
- uses: subosito/flutter-action@v1
|
||||
with:
|
||||
channel: stable
|
||||
- run: flutter analyze
|
||||
- run: flutter format --dry-run --set-exit-if-changed lib/**/*.dart
|
||||
|
Loading…
Reference in New Issue
Block a user