-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: adds weekly scheduled smoke tests (#28)
* test: adds weekly scheduled smoke tests * chore: remove unused deps Co-authored-by: Makuza Mugabo Verite <[email protected]>
- Loading branch information
1 parent
a578e89
commit 1096d44
Showing
5 changed files
with
408 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,33 @@ | ||
name: Smoke test | ||
|
||
on: | ||
workflow_dispatch: # Manual trigger | ||
schedule: # Every sunday at 00:00 | ||
- cron: "0 00 * * SUN" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7.16.1 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: pnpm | ||
|
||
- name: Install, Build & Link plugin | ||
run: | | ||
pnpm install | ||
pnpm build | ||
pnpm link . | ||
pnpm link eslint-plugin-vitest | ||
- uses: AriPerkkio/eslint-remote-tester-run-action@v3 | ||
with: | ||
issue-title: "Results of weekly scheduled smoke test" | ||
eslint-remote-tester-config: eslint-remote-tester.config.ts |
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,2 +1,3 @@ | ||
node_modules/ | ||
dist/ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { Config } from "eslint-remote-tester"; | ||
import { | ||
getPathIgnorePattern, | ||
getRepositories, | ||
} from "eslint-remote-tester-repositories"; | ||
|
||
import plugin from "eslint-plugin-vitest"; | ||
|
||
const config: Config = { | ||
repositories: getRepositories(), | ||
pathIgnorePattern: getPathIgnorePattern(), | ||
extensions: ["js", "jsx", "ts", "tsx", "cts", "mts"], | ||
|
||
concurrentTasks: 3, | ||
cache: false, | ||
logLevel: "info", | ||
|
||
eslintrc: { | ||
root: true, | ||
env: { es6: true }, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: "module", | ||
ecmaFeatures: { jsx: true }, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.ts", "*.tsx", "*.mts", "*.cts"], | ||
parser: "@typescript-eslint/parser", | ||
}, | ||
], | ||
|
||
plugins: ["vitest"], | ||
rules: Object.keys(plugin.rules).reduce( | ||
(all, rule) => ({ ...all, [`vitest/${rule}`]: "error" }), | ||
{} | ||
), | ||
}, | ||
}; | ||
|
||
export default config; |
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
Oops, something went wrong.