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

Commit

Permalink
Merge pull request #111 from data-provider/release
Browse files Browse the repository at this point in the history
Release v1.5.1
  • Loading branch information
javierbrea authored Dec 19, 2020
2 parents 92cd4d0 + f543232 commit 4f043b4
Show file tree
Hide file tree
Showing 20 changed files with 3,431 additions and 2,248 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: build
on:
push:
branches:
- master
- release
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["10.23.0", "12.19.0", "14.15.0", "15.2.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: extract-branch
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test unit
run: npm run test:unit
- name: Test E2E
run: npm run test:e2e:ci
id: test-e2e
- name: Upload E2E tests screenshots
if: ${{ always() && steps.test-e2e.outcome == 'failure' }}
uses: actions/upload-artifact@v2
with:
name: e2e-screenshots-${{ matrix.node }}
path: test-e2e/cypress/screenshots
retention-days: 7
- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: coverage-${{ matrix.node }}
path: coverage
retention-days: 1
quality:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download test results
uses: actions/download-artifact@v2
with:
name: coverage-15.2.0
path: coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: SonarCloud Scan
if: env.SONAR_TOKEN != ''
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish-to-github-registry
name: publish-to-github
on:
release:
types: [created]
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: publish-to-npm
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org/'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ yarn-error.log*

# Vscode config
jsconfig.json

# eslint
.eslintcache
2 changes: 0 additions & 2 deletions .travis.yml

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

## [1.5.1] - 2020-12-19

### Added
- chore(deps): Support all Node.js releases that have not passed their end date

### Changed
- chore(ci): Migrate from Travis CI to github actions

### Fixed
- 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)

## [1.5.0] - 2020-11-16
### Added
- feat: Supports passing options to cleanCache methods in usePolling and withPolling
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build status][travisci-image]][travisci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]
[![Build status][build-image]][build-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]

[![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]

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

[coveralls-image]: https://coveralls.io/repos/github/data-provider/react/badge.svg
[coveralls-url]: https://coveralls.io/github/data-provider/react
[travisci-image]: https://travis-ci.com/data-provider/react.svg?branch=master
[travisci-url]: https://travis-ci.com/data-provider/react
[build-image]: https://github.com/data-provider/react/workflows/build/badge.svg?branch=master
[build-url]: https://github.com/data-provider/react/actions?query=workflow%3Abuild+branch%3Amaster
[last-commit-image]: https://img.shields.io/github/last-commit/data-provider/react.svg
[last-commit-url]: https://github.com/data-provider/react/commits
[license-image]: https://img.shields.io/npm/l/@data-provider/react.svg
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {

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

transform: {
".js$": "babel-jest",
Expand Down
Loading

0 comments on commit 4f043b4

Please sign in to comment.