-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tests] add weekly scheduled smoke tests
- Loading branch information
1 parent
239b661
commit 0894132
Showing
5 changed files
with
72 additions
and
0 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,28 @@ | ||
name: Smoke test | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * SUN' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
if: ${{ github.repository == 'yannickcr/eslint-plugin-react' || github.event_name == 'workflow_dispatch' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- uses: ljharb/actions/node/install@main | ||
name: 'nvm install lts/* && npm install' | ||
with: | ||
node-version: 'lts/*' | ||
skip-ls-check: true | ||
- run: | | ||
npm link | ||
npm link eslint-plugin-react | ||
- uses: AriPerkkio/eslint-remote-tester-run-action@v1 | ||
with: | ||
issue-title: 'Results of weekly scheduled smoke test' | ||
eslint-remote-tester-config: test/eslint-remote-tester.config.js |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
'use strict'; | ||
|
||
const eslintRemoteTesterRepositories = require('eslint-remote-tester-repositories'); | ||
|
||
module.exports = { | ||
repositories: eslintRemoteTesterRepositories.getRepositories({randomize: true}), | ||
|
||
pathIgnorePattern: eslintRemoteTesterRepositories.getPathIgnorePattern(), | ||
|
||
extensions: ['js', 'jsx', 'ts', 'tsx'], | ||
|
||
concurrentTasks: 3, | ||
|
||
logLevel: 'info', | ||
|
||
/** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defauls to true. */ | ||
cache: false, | ||
|
||
eslintrc: { | ||
root: true, | ||
env: { | ||
es6: true | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
settings: { | ||
react: { | ||
version: '16.13.1' | ||
} | ||
}, | ||
extends: ['plugin:react/all'] | ||
} | ||
}; |