Skip to content

Commit bf486d6

Browse files
committed
add github action
1 parent def183f commit bf486d6

File tree

4 files changed

+54
-3
lines changed

4 files changed

+54
-3
lines changed

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": [
3+
"next/core-web-vitals",
4+
"next/typescript"
5+
]
6+
}

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

.github/workflows/base.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on: [push, pull_request]
2+
3+
name: Base GitHub Action for Check, Test and Lints
4+
5+
jobs:
6+
lint-and-build:
7+
name: Lint & Build
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: "22"
18+
cache: "npm"
19+
cache-dependency-path: ./package.json
20+
21+
- name: Install dependencies
22+
working-directory: ./
23+
run: npm install --force
24+
25+
- name: Run ESLint
26+
working-directory: ./
27+
run: npm run lint
28+
29+
- name: Build Next.js application
30+
working-directory: ./
31+
run: npm run build

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"scripts": {
44
"build": "next build",
55
"dev": "next dev",
6-
"start": "next start"
6+
"start": "next start",
7+
"lint": "next lint"
78
},
89
"dependencies": {
910
"@fortawesome/free-brands-svg-icons": "^6.6.0",
@@ -16,7 +17,7 @@
1617
"bcrypt": "^5.1.1",
1718
"clsx": "^2.1.1",
1819
"d3": "^7.9.0",
19-
"next": "15.0.0-canary.56",
20+
"next": "15.0.2",
2021
"next-auth": "^5.0.0-beta.25",
2122
"pg": "^8.12.0",
2223
"postcss": "8.4.38",
@@ -32,7 +33,9 @@
3233
"@types/d3": "^7.4.3",
3334
"@types/node": "20.14.8",
3435
"@types/react": "18.3.3",
35-
"@types/react-dom": "18.3.0"
36+
"@types/react-dom": "18.3.0",
37+
"eslint": "9.13.0",
38+
"eslint-config-next": "15.0.2"
3639
},
3740
"engines": {
3841
"node": ">=20.12.0"

0 commit comments

Comments
 (0)