From fa63571db7c53ea601243f281a09e5d353d3c2ad Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 22 Aug 2023 14:01:13 +0200 Subject: [PATCH] fix: Activate CI by default (#254) * fix: activate ci by default * fix lint --- .eslintignore | 2 ++ .eslintrc.json | 44 ++++++++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 6 ++++-- 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 .eslintignore create mode 100644 .eslintrc.json diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..76add87 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +node_modules +dist \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..c4ceb33 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,44 @@ +{ + "settings": { + "react": { + "version": "detect" + } + }, + "env": { + "browser": true, + "es2021": true + }, + "extends": ["plugin:react/recommended", "google", "prettier"], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": ["react", "@typescript-eslint"], + "rules": { + "require-jsdoc": [ + "error", + { + "require": { + "FunctionDeclaration": true, + "MethodDefinition": false, + "ClassDeclaration": false, + "ArrowFunctionExpression": false, + "FunctionExpression": false + } + } + ], + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": "warn", + "testing-library/no-node-access": "off" + }, + "overrides": [ + { + "files": ["src/**/*.test.ts?(x)"], + "extends": ["plugin:testing-library/react"] + } + ] +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26ebfa9..d33c73e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ on: - #pull_request: + pull_request: workflow_dispatch: permissions: write-all @@ -68,6 +68,7 @@ jobs: files: 'vitest-results.xml' e2eTests: + if: false name: ๐Ÿงช E2E Tests needs: [validateCodyStyle] timeout-minutes: 60 @@ -121,7 +122,8 @@ jobs: notify-on-success: name: ๐Ÿ“ง Notify success if: success() - needs: [validateCodyStyle, unitTests, e2eTests] + #needs: [validateCodyStyle, unitTests, e2eTests] + needs: [validateCodyStyle, unitTests] runs-on: ubuntu-latest steps: - name: ๐Ÿ“ง Comment Pull Request