Skip to content

Commit 9046967

Browse files
Add CI and Depedabot config
1 parent 0875724 commit 9046967

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/dependabot.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
enable-beta-ecosystems: true
3+
updates:
4+
# Github actions ecosystem.
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"
9+
# Pub ecosystem.
10+
- package-ecosystem: "pub"
11+
versioning-strategy: "increase-if-necessary"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"

.github/workflows/flutter.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Flutter CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
lint-and-test:
11+
name: Static code analysis
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Flutter
16+
uses: subosito/flutter-action@v2
17+
with:
18+
channel: stable
19+
- run: dart --version
20+
- run: flutter --version
21+
- run: flutter pub get
22+
- name: Lint analysis
23+
run: dart analyze --fatal-infos
24+
- name: Dart format
25+
run: dart format --output none --set-exit-if-changed .
26+
- name: dart fix
27+
run: dart fix --dry-run
28+
- name: Run tests
29+
run: flutter test

0 commit comments

Comments
 (0)