Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/custom-input-format
- Loading branch information
Showing
59 changed files
with
1,136 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: 'Tests: pretest/posttest/build' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
pretest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@main | ||
name: 'nvm install lts/* && npm install' | ||
with: | ||
node-version: 'lts/*' | ||
- run: npm run pretest | ||
|
||
# posttest: | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: ljharb/actions/node/install@main | ||
# name: 'nvm install lts/* && npm install' | ||
# with: | ||
# node-version: 'lts/*' | ||
# - run: npm run posttest | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@main | ||
name: 'nvm install lts/* && npm install' | ||
with: | ||
node-version: 'lts/*' | ||
- run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: 'Tests: node.js' | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
latest: ${{ steps.set-matrix.outputs.requireds }} | ||
minors: ${{ steps.set-matrix.outputs.optionals }} | ||
steps: | ||
- uses: ljharb/actions/node/matrix@main | ||
id: set-matrix | ||
with: | ||
type: 'majors' | ||
versionsAsRoot: true | ||
preset: '>=4' | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@main | ||
with: | ||
node-version: 'lts/*' | ||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: | | ||
lib | ||
esm | ||
test-build | ||
key: ${{ runner.os }}-${{ hashFiles('package.json', 'src/**', 'test/**', 'scripts/buildCSS.js') }} | ||
- run: npm run build | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
- run: npm run build:test | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
|
||
majors: | ||
needs: [build, matrix] | ||
name: 'latest minors' | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: ${{ fromJson(needs.matrix.outputs.latest) }} | ||
react: | ||
- '16' | ||
- '16.9' | ||
- '16.3' | ||
- '16.0' | ||
- '15' | ||
- '15.5' | ||
- '15.0' | ||
- '0.14' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/actions/node/install@main | ||
name: 'nvm install ${{ matrix.node-version }} && npm install' | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
skip-ls-check: ${{ !startsWith(matrix.node-version, '5.') && !startsWith(matrix.node-version, '4.') && 'true' || 'false' }} | ||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: | | ||
lib | ||
esm | ||
test-build | ||
key: ${{ runner.os }}-${{ hashFiles('package.json', 'src/**', 'test/**', 'scripts/buildCSS.js') }} | ||
- run: npm run react | ||
env: | ||
REACT: ${{ matrix.react }} | ||
- run: npm run tests-only | ||
env: | ||
REACT: ${{ matrix.react }} | ||
- uses: codecov/codecov-action@v2 | ||
|
||
node: | ||
name: 'node.js' | ||
needs: [majors] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo tests completed' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Automatic Rebase | ||
|
||
on: [pull_request_target] | ||
|
||
jobs: | ||
_: | ||
name: "Automatic Rebase" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ljharb/rebase@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Require “Allow Edits” | ||
|
||
on: [pull_request_target] | ||
|
||
jobs: | ||
_: | ||
name: "Require “Allow Edits”" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: ljharb/require-allow-edits@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ node_modules | |
# build folder | ||
lib | ||
esm | ||
test-build | ||
.idea | ||
|
||
# gh-pages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,6 @@ public | |
react-dates-demo.gif | ||
stories | ||
test | ||
test-build | ||
css | ||
!lib/css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,13 @@ | ||
language: node_js | ||
node_js: | ||
- 14 | ||
- 12 | ||
- 10 | ||
- 8 | ||
- 6 | ||
node_js: lts/* | ||
before_install: | ||
- 'nvm install-latest-npm' | ||
- nvm install-latest-npm | ||
services: | ||
- xvfb | ||
before_script: | ||
- 'if [ -n "${KARMA-}" ]; then export DISPLAY=:99.0; fi' | ||
script: | ||
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi' | ||
- 'if [ -n "${BUILD-}" ]; then npm run build ; fi' | ||
- 'if [ "${TEST-}" = true ]; then npm run tests-only ; fi' | ||
- 'if [ -n "${KARMA-}" ]; then npm run tests-karma ; fi' | ||
- 'if [ -n "${COVERAGE-}" ] && [ "${TRAVIS_BRANCH-}" = "master" ]; then npm run cover; cat ./coverage/lcov.info | ./node_modules/.bin/coveralls ; fi' | ||
install: | ||
- 'if [ -n "${LINT-}" ]; then NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --legacy-bundling ; else npm install ; fi' | ||
- npm run tests-karma | ||
env: | ||
global: | ||
- TEST=true | ||
matrix: | ||
- REACT=0.14 | ||
- REACT=15 | ||
- REACT=16 | ||
- DISPLAY=:99.0 | ||
sudo: false | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- node_js: "lts/*" | ||
env: LINT=true TEST=false | ||
- node_js: "lts/*" | ||
env: BUILD=true TEST=false | ||
- node_js: "lts/*" | ||
env: COVERAGE=true TEST=false | ||
- node_js: "lts/*" | ||
env: KARMA=true TEST=false | ||
allow_failures: | ||
- node_js: "10" | ||
env: REACT=16 |
Oops, something went wrong.