Skip to content

Commit 9f12d1e

Browse files
Merge pull request #64 from Workiva/github_ci
Replace Travis CI with Github Workflow
2 parents d725973 + 724c003 commit 9f12d1e

File tree

4 files changed

+34
-12
lines changed

4 files changed

+34
-12
lines changed

.github/workflows/dart_ci.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Dart CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'test_consume_*'
8+
pull_request:
9+
branches:
10+
- '**'
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
sdk: [ stable, beta, dev ]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: dart-lang/setup-dart@v1
21+
with:
22+
sdk: ${{ matrix.sdk }}
23+
- name: Install dependencies
24+
run: dart pub get
25+
- name: Verify formatting
26+
run: dart format --output=none --set-exit-if-changed .
27+
if: ${{ matrix.sdk == 'stable' }}
28+
- name: Analyze project source
29+
run: dart analyze
30+
- name: Run tests
31+
run: dart test

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/src/decorator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import 'dart:html';
1515

1616
import 'package:meta/meta.dart';
17-
import 'package:platform_detect/platform_detect.dart';
17+
import 'package:platform_detect/src/detect.dart';
1818
import 'package:platform_detect/src/support.dart';
1919

2020
/// The CSS class that will be used to indicate that [decorateRootNodeWithPlatformClasses]

test/decorator_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import 'dart:html';
33

44
import 'package:test/test.dart';
55

6-
import 'package:platform_detect/platform_detect.dart';
76
import 'package:platform_detect/src/decorator.dart';
7+
import 'package:platform_detect/src/detect.dart';
88
import 'package:platform_detect/src/support.dart';
99

1010
void main() {
@@ -113,6 +113,7 @@ void main() {
113113

114114
group('custom features provided by the consumer', () {
115115
Feature uniqueConsumerFeature =
116+
// ignore: unnecessary_null_comparison
116117
Feature('canvas', CanvasElement().context2D != null);
117118
List<Feature> consumerFeaturesThatContainsNoDefaults = [
118119
uniqueConsumerFeature

0 commit comments

Comments
 (0)