Skip to content

Commit 8e723e1

Browse files
Switch to github CI
+ And start building on stable instead of 2.8.4 since dart-lang/sdk#42977 has been resolved by the over_react builder + Remove unnecessary dependency on dart_dev
1 parent 71fa588 commit 8e723e1

File tree

6 files changed

+85
-83
lines changed

6 files changed

+85
-83
lines changed

.github/workflows/dart_ci.yml

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
validate:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
sdk: [ 2.7.2, stable, dev ]
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: dart-lang/[email protected]
22+
with:
23+
sdk: ${{ matrix.sdk }}
24+
25+
- name: Print Dart SDK version
26+
run: dart --version
27+
28+
- id: install
29+
name: Install dependencies
30+
run: pub get --no-precompile
31+
32+
- name: Validate dependencies
33+
run: pub run dependency_validator -i coverage,build_runner,build_test,build_web_compilers,meta,pedantic
34+
if: always() && steps.install.outcome == 'success'
35+
36+
- name: Analyze project source
37+
run: if [ ${{ matrix.sdk }} = '2.7.2' ]; then pub global activate tuneup && tuneup check --ignore-infos; else dart analyze; fi
38+
if: always() && steps.install.outcome == 'success'
39+
40+
test_ddc:
41+
runs-on: ubuntu-latest
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
sdk: [ 2.7.2, stable, dev ]
46+
steps:
47+
- uses: actions/checkout@v2
48+
- uses: dart-lang/[email protected]
49+
with:
50+
sdk: ${{ matrix.sdk }}
51+
52+
- name: Print Dart SDK version
53+
run: dart --version
54+
55+
- id: install
56+
name: Install dependencies
57+
run: pub get --no-precompile
58+
59+
- name: Run tests (DDC)
60+
run: pub run build_runner test -- test/over_react_test.dart
61+
if: always() && steps.install.outcome == 'success'
62+
63+
test_dart2js:
64+
runs-on: ubuntu-latest
65+
strategy:
66+
fail-fast: false
67+
matrix:
68+
sdk: [ 2.7.2, stable, dev ]
69+
steps:
70+
- uses: actions/checkout@v2
71+
- uses: dart-lang/[email protected]
72+
with:
73+
sdk: ${{ matrix.sdk }}
74+
75+
- name: Print Dart SDK version
76+
run: dart --version
77+
78+
- id: install
79+
name: Install dependencies
80+
run: pub get --no-precompile
81+
82+
- name: Run tests (dart2js)
83+
run: pub run build_runner test -r -- test/over_react_test.dart
84+
if: always() && steps.install.outcome == 'success'

.travis.yml

-21
This file was deleted.

Dockerfile

-15
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ ARG GIT_MERGE_BRANCH
1414
ARG GIT_SSH_KEY
1515
ARG KNOWN_HOSTS_CONTENT
1616

17-
# wget is used to install chrome
18-
RUN apt-get update && apt-get install -y \
19-
wget \
20-
&& rm -rf /var/lib/apt/lists/*
21-
22-
# install chrome
23-
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
24-
RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list
25-
RUN apt-get -qq update && apt-get install -y google-chrome-stable
26-
RUN mv /usr/bin/google-chrome-stable /usr/bin/google-chrome
27-
RUN sed -i --follow-symlinks -e 's/\"\$HERE\/chrome\"/\"\$HERE\/chrome\" --no-sandbox/g' /usr/bin/google-chrome
28-
2917
# Install SSH keys for git ssh access
3018
RUN mkdir /root/.ssh
3119
RUN echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts"
@@ -37,7 +25,4 @@ WORKDIR /build/
3725
ADD . /build/
3826

3927
RUN pub get
40-
RUN pub run dart_dev analyze
41-
RUN pub run dependency_validator -i pedantic
42-
RUN pub run dart_dev test
4328
FROM scratch

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# OverReact Test
22

33
[![Pub](https://img.shields.io/pub/v/over_react_test.svg)](https://pub.dartlang.org/packages/over_react_test)
4-
[![Build Status](https://travis-ci.org/Workiva/over_react_test.svg?branch=master)](https://travis-ci.org/Workiva/over_react_test)
5-
[![Test Coverage](https://codecov.io/github/Workiva/over_react_test/coverage.svg?branch=master)](https://codecov.io/github/Workiva/over_react_test?branch=master)
4+
[![Build Status](https://github.com/Workiva/over_react_test/workflows/Dart%20CI/badge.svg?branch=master)](https://github.com/Workiva/over_react_test/actions?query=workflow%3A%22Dart+CI%22+branch%3Amaster)
65
[![Documentation](https://img.shields.io/badge/Documentation-over_react_test-blue.svg)](http://www.dartdocs.org/documentation/over_react_test/latest/)
76

87
> A library for testing [OverReact][over-react] components.

pubspec.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ dev_dependencies:
1616
build_runner: ^1.7.1
1717
build_test: ">=0.10.9 <2.0.0"
1818
build_web_compilers: ^2.5.1
19-
dart_dev: ^2.2.0
2019
dependency_validator: ^1.4.0
2120
pedantic: ^1.8.0

tool/dev.dart

-44
This file was deleted.

0 commit comments

Comments
 (0)