Skip to content

Commit 020f0b9

Browse files
committed
feat: Add GH action. #1
1 parent 6815026 commit 020f0b9

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pub
4+
schedule:
5+
interval: weekly
6+
time: "17:00"
7+
timezone: Europe/London

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
# Installing Flutter because it's easier to generate .lcov files for test coverage
16+
- name: Install Flutter
17+
uses: subosito/flutter-action@v2
18+
with:
19+
channel: 'stable'
20+
21+
- name: Install dependencies
22+
run: flutter pub get
23+
24+
# Your project will need to have tests in test/ and a dependency on
25+
# package:test for this step to succeed. Note that Flutter projects will
26+
# want to change this to 'flutter test'.
27+
- name: Run tests
28+
run: flutter test --coverage
29+
30+
- uses: codecov/codecov-action@v2
31+
with:
32+
files: coverage/lcov.info
33+
verbose: true # optional (default = false)

0 commit comments

Comments
 (0)