Skip to content

Commit

Permalink
Merge pull request #121 from Workiva/release_over_react_test_2.11.1
Browse files Browse the repository at this point in the history
RM-99666 Release over_react_test 2.11.1
  • Loading branch information
rmconsole7-wk authored Jul 23, 2021
2 parents fb201fd + e1e04b5 commit 736554c
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 92 deletions.
114 changes: 114 additions & 0 deletions .github/workflows/dart_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: Dart CI

on:
push:
branches:
- 'master'
- 'test_consume_*'
pull_request:
branches:
- '*'

jobs:
validate:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ 2.7.2, stable, dev ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}

- name: Print Dart SDK version
run: dart --version

- id: install
name: Install dependencies
run: pub get --no-precompile

- name: Validate dependencies
run: pub run dependency_validator -i coverage,build_runner,build_test,build_web_compilers,meta,pedantic
if: always() && steps.install.outcome == 'success'

- name: Analyze project source
run: if [ ${{ matrix.sdk }} = '2.7.2' ]; then pub global activate tuneup && tuneup check --ignore-infos; else dart analyze; fi
if: always() && steps.install.outcome == 'success'

test_ddc:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ 2.7.2, stable ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}

- name: Print Dart SDK version
run: dart --version

- id: install
name: Install dependencies
run: pub get --no-precompile

- name: Run tests (DDC)
run: pub run build_runner test -- --file-reporter json:reports/${{ matrix.sdk }}/ddc/test-results.json
if: always() && steps.install.outcome == 'success'

- name: Upload Unit Test Results
uses: actions/upload-artifact@v2
if: ${{ steps.install.outcome == 'success' && (success() || failure()) }} # run this step even if previous step failed, but not if it was skipped
with:
name: ddc-test-results@${{ matrix.sdk }}
path: reports/${{ matrix.sdk }}/ddc/test-results.json

- name: Report Unit Test Results
uses: dorny/test-reporter@v1
if: ${{ always() && steps.install.outcome == 'success' }}
with:
name: Unit Test Results (ddc - ${{ matrix.sdk }})
path: 'reports/${{ matrix.sdk }}/ddc/test-results.json'
reporter: dart-json

test_dart2js:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ 2.7.2, stable ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}

- name: Print Dart SDK version
run: dart --version

- id: install
name: Install dependencies
run: pub get --no-precompile

- name: Run tests (dart2js)
run: pub run build_runner test -r -- --file-reporter json:reports/${{ matrix.sdk }}/dart2js/test-results.json
if: always() && steps.install.outcome == 'success'

- name: Upload Unit Test Results
uses: actions/upload-artifact@v2
if: ${{ steps.install.outcome == 'success' && (success() || failure()) }} # run this step even if previous step failed, but not if it was skipped
with:
name: dart2js-test-results@${{ matrix.sdk }}
path: reports/${{ matrix.sdk }}/dart2js/test-results.json

- name: Report Unit Test Results
uses: dorny/test-reporter@v1
if: ${{ always() && steps.install.outcome == 'success' }}
with:
name: Unit Test Results (dart2js - ${{ matrix.sdk }})
path: 'reports/${{ matrix.sdk }}/dart2js/test-results.json'
reporter: dart-json
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# OverReact Test Changelog

## 2.11.1

* [Remove deprecated authors field from pubspec.yaml](https://github.com/Workiva/over_react_test/pull/117)
* [Widen Dependency Ranges Blocking Dart 2.13](https://github.com/Workiva/over_react_test/pull/120)
* [Switch to Github CI](https://github.com/Workiva/over_react_test/pull/121/commits/14dd95454d3c4f1c087af6ed9b4aeb3b2f0c0b2d)

## 2.11.0

* Added support for searching within ShadowDOM roots to `queryByTestId` and `queryAllByTestId`.
Expand Down
15 changes: 0 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,6 @@ ARG GIT_MERGE_BRANCH
ARG GIT_SSH_KEY
ARG KNOWN_HOSTS_CONTENT

# wget is used to install chrome
RUN apt-get update && apt-get install -y \
wget \
&& rm -rf /var/lib/apt/lists/*

# install chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list
RUN apt-get -qq update && apt-get install -y google-chrome-stable
RUN mv /usr/bin/google-chrome-stable /usr/bin/google-chrome
RUN sed -i --follow-symlinks -e 's/\"\$HERE\/chrome\"/\"\$HERE\/chrome\" --no-sandbox/g' /usr/bin/google-chrome

# Install SSH keys for git ssh access
RUN mkdir /root/.ssh
RUN echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts"
Expand All @@ -37,7 +25,4 @@ WORKDIR /build/
ADD . /build/

RUN pub get
RUN pub run dart_dev analyze
RUN pub run dependency_validator -i pedantic
RUN pub run dart_dev test
FROM scratch
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# OverReact Test

[![Pub](https://img.shields.io/pub/v/over_react_test.svg)](https://pub.dartlang.org/packages/over_react_test)
[![Build Status](https://travis-ci.org/Workiva/over_react_test.svg?branch=master)](https://travis-ci.org/Workiva/over_react_test)
[![Test Coverage](https://codecov.io/github/Workiva/over_react_test/coverage.svg?branch=master)](https://codecov.io/github/Workiva/over_react_test?branch=master)
[![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)
[![Documentation](https://img.shields.io/badge/Documentation-over_react_test-blue.svg)](http://www.dartdocs.org/documentation/over_react_test/latest/)

> A library for testing [OverReact][over-react] components.
Expand Down
5 changes: 5 additions & 0 deletions dart_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platforms:
- chrome

paths:
- test/over_react_test.dart
14 changes: 4 additions & 10 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: over_react_test
version: 2.11.0
version: 2.11.1
description: A library for testing OverReact components
homepage: https://github.com/Workiva/over_react_test/
environment:
Expand All @@ -8,19 +8,13 @@ environment:
dependencies:
js: ^0.6.1+1
matcher: ^0.12.1+4
meta: ^1.2.2
over_react: ^4.1.0
react: ">=5.5.1 <7.0.0"
meta: ">=1.2.2 <1.7.0" # Workaround to avoid https://github.com/dart-lang/sdk/issues/46142
over_react: ^4.1.2
react: ^6.0.1
test: ^1.15.7
dev_dependencies:
build_runner: ^1.7.1
build_test: ">=0.10.9 <2.0.0"
build_web_compilers: ^2.5.1
dart_dev: ^2.2.0
dependency_validator: ^1.4.0
pedantic: ^1.8.0

transformers:
- over_react
- test/pub_serve:
$include: test/**_test{.*,}.dart
44 changes: 0 additions & 44 deletions tool/dev.dart

This file was deleted.

0 comments on commit 736554c

Please sign in to comment.