Skip to content

Commit 9ab56e5

Browse files
Merge pull request #33 from fluttermiddlepodcast/upgrade
updated Dart version
2 parents 6808087 + 647658c commit 9ab56e5

8 files changed

+174
-105
lines changed

.github/workflows/dart.yml

+26-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,37 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build:
10+
formatter:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
1414
- uses: dart-lang/setup-dart@v1.0
1515
with:
16-
sdk: 2.18.0
16+
sdk: 3.6.0
17+
- name: Install dependencies
18+
run: dart pub get
19+
- name: Run Dart format
20+
run: dart format ./ -l 120 --set-exit-if-changed
21+
22+
analyzer:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: dart-lang/setup-dart@v1.0
27+
with:
28+
sdk: 3.6.0
29+
- name: Install dependencies
30+
run: dart pub get
31+
- name: Run Dart Analyzer
32+
run: dart analyze --fatal-warnings --fatal-infos
33+
34+
tests:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v2
38+
- uses: dart-lang/setup-dart@v1.0
39+
with:
40+
sdk: 3.6.0
1741
- name: Install dependencies
1842
run: dart pub get
1943
- name: Run tests

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
# Conventional directory for build output.
66
build/
77

8-
/.idea
8+
.idea
9+
10+
.vscode
11+
12+
coverage

lib/medium/integer_to_roman.dart

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
class Solution {
2-
32
var _result = '';
43

54
String intToRoman(int num) {

0 commit comments

Comments
 (0)