Skip to content
This repository was archived by the owner on May 27, 2022. It is now read-only.

Commit 4f043b4

Browse files
authored
Merge pull request #111 from data-provider/release
Release v1.5.1
2 parents 92cd4d0 + f543232 commit 4f043b4

20 files changed

+3431
-2248
lines changed

.github/workflows/build.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- release
7+
pull_request:
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node: ["10.23.0", "12.19.0", "14.15.0", "15.2.0"]
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Extract branch name
18+
shell: bash
19+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
20+
id: extract-branch
21+
- name: Use Node.js
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node }}
25+
- name: Cache node modules
26+
uses: actions/cache@v2
27+
env:
28+
cache-name: cache-node-modules
29+
with:
30+
# npm cache files are stored in `~/.npm` on Linux/macOS
31+
path: ~/.npm
32+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
33+
restore-keys: |
34+
${{ runner.os }}-build-${{ env.cache-name }}-
35+
${{ runner.os }}-build-
36+
${{ runner.os }}-
37+
- name: Install dependencies
38+
run: npm ci
39+
- name: Lint
40+
run: npm run lint
41+
- name: Test unit
42+
run: npm run test:unit
43+
- name: Test E2E
44+
run: npm run test:e2e:ci
45+
id: test-e2e
46+
- name: Upload E2E tests screenshots
47+
if: ${{ always() && steps.test-e2e.outcome == 'failure' }}
48+
uses: actions/upload-artifact@v2
49+
with:
50+
name: e2e-screenshots-${{ matrix.node }}
51+
path: test-e2e/cypress/screenshots
52+
retention-days: 7
53+
- name: Upload test results
54+
uses: actions/upload-artifact@v2
55+
with:
56+
name: coverage-${{ matrix.node }}
57+
path: coverage
58+
retention-days: 1
59+
quality:
60+
runs-on: ubuntu-latest
61+
needs: test
62+
steps:
63+
- name: Checkout
64+
uses: actions/checkout@v2
65+
- name: Download test results
66+
uses: actions/download-artifact@v2
67+
with:
68+
name: coverage-15.2.0
69+
path: coverage
70+
- name: Coveralls
71+
uses: coverallsapp/github-action@master
72+
with:
73+
github-token: ${{ secrets.GITHUB_TOKEN }}
74+
- name: SonarCloud Scan
75+
if: env.SONAR_TOKEN != ''
76+
uses: sonarsource/sonarcloud-github-action@master
77+
env:
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/publish-to-github-registry.yml renamed to .github/workflows/publish-to-github.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish-to-github-registry
1+
name: publish-to-github
22
on:
33
release:
44
types: [created]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: publish-to-npm
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: '12.x'
13+
registry-url: 'https://registry.npmjs.org/'
14+
- run: npm ci
15+
- run: npm run build
16+
- run: npm publish
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ yarn-error.log*
3333

3434
# Vscode config
3535
jsconfig.json
36+
37+
# eslint
38+
.eslintcache

.travis.yml

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

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111
### Removed
1212

13+
## [1.5.1] - 2020-12-19
14+
15+
### Added
16+
- chore(deps): Support all Node.js releases that have not passed their end date
17+
18+
### Changed
19+
- chore(ci): Migrate from Travis CI to github actions
20+
21+
### Fixed
22+
- fix(usePolling): Use cleanDepedenciesCache instead of cleanCache in first invocation. Pass options to it and do not execute it in case provider is loading (#107)
23+
1324
## [1.5.0] - 2020-11-16
1425
### Added
1526
- feat: Supports passing options to cleanCache methods in usePolling and withPolling

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build status][travisci-image]][travisci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]
1+
[![Build status][build-image]][build-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]
22

33
[![NPM dependencies][npm-dependencies-image]][npm-dependencies-url] [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url]
44

@@ -536,8 +536,8 @@ Please read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of
536536

537537
[coveralls-image]: https://coveralls.io/repos/github/data-provider/react/badge.svg
538538
[coveralls-url]: https://coveralls.io/github/data-provider/react
539-
[travisci-image]: https://travis-ci.com/data-provider/react.svg?branch=master
540-
[travisci-url]: https://travis-ci.com/data-provider/react
539+
[build-image]: https://github.com/data-provider/react/workflows/build/badge.svg?branch=master
540+
[build-url]: https://github.com/data-provider/react/actions?query=workflow%3Abuild+branch%3Amaster
541541
[last-commit-image]: https://img.shields.io/github/last-commit/data-provider/react.svg
542542
[last-commit-url]: https://github.com/data-provider/react/commits
543543
[license-image]: https://img.shields.io/npm/l/@data-provider/react.svg

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929

3030
// The glob patterns Jest uses to detect test files
3131
testMatch: ["**/test/**/?(*.)+(spec|test).js?(x)"],
32-
// testMatch: ["**/test/hocs.spec.js"],
32+
// testMatch: ["**/test/usePolling.spec.js"],
3333

3434
transform: {
3535
".js$": "babel-jest",

0 commit comments

Comments
 (0)