-
-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds weekly scheduled smoke tests (#923)
- Loading branch information
1 parent
c137daa
commit bf941a1
Showing
5 changed files
with
1,912 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,19 @@ | ||
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: 14 | ||
- run: npm install | ||
- run: npm link | ||
- run: npm link eslint-plugin-unicorn | ||
- run: npm run smoke |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
'use strict'; | ||
|
||
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 | ||
].join('|')})`, | ||
|
||
/** Empty array since we are only interested in linter crashes */ | ||
rulesUnderTesting: [], | ||
|
||
/** Maximum amount of tasks ran concurrently */ | ||
concurrentTasks: 3, | ||
|
||
/** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defauls to true. */ | ||
cache: false, | ||
|
||
/** Optional setting for log level. Valid values are verbose, info, warn, error. Defaults to verbose. */ | ||
logLevel: 'info', | ||
|
||
/** ESLint configuration */ | ||
eslintrc: { | ||
root: true, | ||
env: { | ||
es6: true | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
extends: ['plugin:unicorn/recommended'] | ||
} | ||
}; |
Oops, something went wrong.