Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: adds scheduled smoke-tests (#108)
Co-authored-by: Ben Monro <ben.monro@gmail.com>
- Loading branch information
1 parent
878cb0e
commit bc665c1
Showing
6 changed files
with
757 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Smoke test | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * SUN' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.11 | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn link | ||
- run: yarn link eslint-plugin-jest-dom | ||
- run: yarn test:smoke | ||
env: | ||
CI: true |
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,3 +1,5 @@ | ||
node_modules | ||
coverage | ||
dist | ||
.cache-eslint-remote-tester | ||
eslint-remote-tester-results |
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,73 @@ | ||
module.exports = { | ||
/** Repositories to scan */ | ||
repositories: require('./repositories.json'), | ||
|
||
/** Extensions of files under scanning */ | ||
extensions: ['js', 'jsx', 'ts', 'tsx'], | ||
|
||
/** Optional pattern used to exclude paths */ | ||
pathIgnorePattern: `(${[ | ||
'node_modules', | ||
'\\/\\.', // Any file or directory starting with dot, e.g. ".git" | ||
'/dist/', | ||
'/build/', | ||
// Common patterns for minified JS | ||
'babel\\.js', | ||
'vendor\\.js', | ||
'vendors\\.js', | ||
'chunk\\.js', | ||
'bundle\\.js', | ||
'react-dom\\.development\\.js', | ||
'\\.min\\.js', // Any *.min.js | ||
// Project specific ignores | ||
'codesandbox-client/packages/app/static/js', | ||
'codesandbox-client/standalone-packages', | ||
'dockunit/platform/assets', | ||
'hyper/bin', | ||
'react-solitaire/lib/index\\.js', | ||
'Khan/perseus/lib', | ||
'glortho/react-keydown/example/public', | ||
'reach/reach-ui/packages/combobox/examples/cities\\.ts', | ||
'reach/reach-ui/website/src/components/cities\\.js', | ||
'reach/reach-ui/website/static/router/static', | ||
'Automattic/wp-calypso/client/components/phone-input/data\\.js', | ||
'test262-main\\.ts', | ||
'sample_vis\\.test\\.mocks\\.ts', | ||
].join('|')})`, | ||
|
||
/** Empty array since we are only interested in linter crashes */ | ||
rulesUnderTesting: [], | ||
|
||
/** Maximum amount of tasks ran concurrently */ | ||
concurrentTasks: 2, | ||
|
||
/** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defauls to true. */ | ||
cache: false, | ||
|
||
/** ESLint configuration */ | ||
eslintrc: { | ||
root: true, | ||
env: { | ||
es6: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
plugins: [ | ||
'jest-dom', | ||
], | ||
extends: [ | ||
'plugin:jest-dom/recommended', | ||
], | ||
rules: { | ||
'prefer-in-document': 'error' | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.