Merge pull request #2 from dqnid/feature/github_actions
feat(github): push test/lint actions implemented
This commit is contained in:
17
.github/workflows/lint_front.yml
vendored
Normal file
17
.github/workflows/lint_front.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Lint front projects
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "feature/**"
|
||||
- "bugfix/**"
|
||||
|
||||
jobs:
|
||||
next:
|
||||
name: Next front lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout into git repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Runs front tests
|
||||
run: cd front && npx lint-staged -c ./.eslintrc.json -q
|
||||
17
.github/workflows/test_front.yml
vendored
Normal file
17
.github/workflows/test_front.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Test front projects
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "feature/**"
|
||||
- "bugfix/**"
|
||||
|
||||
jobs:
|
||||
next:
|
||||
name: Next front test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout into git repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Runs front tests
|
||||
run: cd front && npm i && npm run test
|
||||
@@ -1,45 +1,34 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
]
|
||||
"compilerOptions": {
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
"typeRoots": ["./node_modules/@types", "./src/modules/auth/types"]
|
||||
},
|
||||
"typeRoots": [
|
||||
"./node_modules/@types",
|
||||
"./src/modules/auth/types"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
".next/types/**/*.ts",
|
||||
"src/modules/**/*.d.ts",
|
||||
"./jest.setup.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
".next/types/**/*.ts",
|
||||
"src/modules/**/*.d.ts",
|
||||
"./jest.setup.ts"
|
||||
],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user