Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 23 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,40 @@ on:
pull_request:
branches:
- 'dev'

jobs:
test:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_DEV_SERVER_URL: ${{ secrets.NEXT_PUBLIC_DEV_SERVER_URL }}
steps:
- name: checkout code
- name: Checkout code
uses: actions/checkout@v4
- name: setup node

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.10'
- name: get node version
id: node
run: |
echo ":set-output name=node_version::$(node -v)"
- name: cache node_modules

- name: Disable Next.js telemetry
run: npx next telemetry disable

- name: Cache node_modules and .next/cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ steps.node.outputs.node_version }}
- name: install dependencies
run: yarn
- name: run tests
path: |
node_modules
.next/cache
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('next.config.mjs') }}
restore-keys: |
${{ runner.os }}-node_modules-
${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn install

- name: Run tests
run: yarn test
- name: build code

- name: Build code
run: yarn build
65 changes: 14 additions & 51 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,22 @@
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"types": [
"vite/client",
"jest",
"react",
"react-dom",
"node"
],
"types": ["vite/client", "jest", "react", "react-dom", "node"],
"skipLibCheck": true,
"baseUrl": "src",
"paths": {
"@/styles/*": [
"styles/*"
],
"@/config/*": [
"config/*"
],
"@/shared/*": [
"shared/*"
],
"@/graphql/*": [
"graphql/*"
],
"@/utils/*": [
"shared/utils/*"
],
"@/hooks/*": [
"hooks/*"
],
"@/constants/*": [
"shared/constants/*"
],
"@/containers/*": [
"containers/*"
],
"@/routes/*": [
"routes/*"
],
"@/components/*": [
"shared/components/*"
]
"@/styles/*": ["styles/*"],
"@/config/*": ["config/*"],
"@/shared/*": ["shared/*"],
"@/graphql/*": ["graphql/*"],
"@/utils/*": ["shared/utils/*"],
"@/hooks/*": ["hooks/*"],
"@/constants/*": ["shared/constants/*"],
"@/containers/*": ["containers/*"],
"@/routes/*": ["routes/*"],
"@/components/*": ["shared/components/*"]
},
/* Bundler mode */
"moduleResolution": "bundler",
Expand All @@ -73,13 +43,6 @@
}
]
},
"include": [
"./src",
"./dist/types/**/*.ts",
"./next-env.d.ts",
".next/types/**/*.ts"
],
"exclude": [
"./node_modules"
]
"include": ["./src", "./dist/types/**/*.ts", "./next-env.d.ts", ".next/types/**/*.ts"],
"exclude": ["./node_modules"]
}