Skip to content

Commit

Permalink
ci: properly configure smoke test (#1003)
Browse files Browse the repository at this point in the history
* ci: adjust

* ci: add config for smoke tester

* ci: install required packages for smoke testing

* chore: convert smoke test config to typescript

* ci: don't run smoke test on pull requests
  • Loading branch information
G-Rath committed Jan 1, 2022
1 parent dbf3453 commit 88c43dd
Show file tree
Hide file tree
Showing 4 changed files with 294 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/smoke-test.yml
Expand Up @@ -21,4 +21,4 @@ jobs:
- uses: AriPerkkio/eslint-remote-tester-run-action@v3
with:
issue-title: 'Results of weekly scheduled smoke test'
eslint-remote-tester-config: smoke-test/eslint-remote-tester.config.js
eslint-remote-tester-config: smoke-test/eslint-remote-tester.config.ts
33 changes: 33 additions & 0 deletions eslint-remote-tester.config.ts
@@ -0,0 +1,33 @@
'use strict';

import { Config } from 'eslint-remote-tester';
import {
getPathIgnorePattern,
getRepositories,
} from 'eslint-remote-tester-repositories';

const config: Config = {
repositories: getRepositories({ randomize: true }),
pathIgnorePattern: getPathIgnorePattern(),
extensions: ['js', 'jsx', 'ts', 'tsx'],
concurrentTasks: 3,
cache: false,
logLevel: 'info',
eslintrc: {
root: true,
env: {
es6: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
extends: ['plugin:jest/all'],
},
};

export default config;
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -111,6 +111,8 @@
"eslint-plugin-import": "^2.25.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-remote-tester": "^2.1.0",
"eslint-remote-tester-repositories": "^0.0.3",
"husky": "^7.0.2",
"is-ci": "^3.0.0",
"jest": "^27.0.0",
Expand Down

0 comments on commit 88c43dd

Please sign in to comment.