Skip to content

Commit

Permalink
fix: Activate CI by default (#254)
Browse files Browse the repository at this point in the history
* fix: activate ci by default

* fix lint
  • Loading branch information
coolusaHD authored Aug 22, 2023
1 parent 4717f64 commit fa63571
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
44 changes: 44 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -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"]
}
]
}
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on:
#pull_request:
pull_request:
workflow_dispatch:

permissions: write-all
Expand Down Expand Up @@ -68,6 +68,7 @@ jobs:
files: 'vitest-results.xml'

e2eTests:
if: false
name: 🧪 E2E Tests
needs: [validateCodyStyle]
timeout-minutes: 60
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fa63571

Please sign in to comment.