Skip to content

Commit

Permalink
ci(chore): add eslint & fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeptossss committed Oct 29, 2023
1 parent fce5b12 commit a76ee07
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
dist
public

# ignore generate imports
auto-imports.d.ts
components.d.ts

dist
.output
node_modules
13 changes: 13 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": ["@nuxtjs/eslint-config-typescript"],
"overrides": [
{
"files": [
"./server/**/*.ts"
],
"rules": {
"no-console": ["error", { "allow": ["info", "warn", "trace", "error"]}]
}
}
]
}
24 changes: 0 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,3 @@ jobs:

# Run tests
- run: npm run test

# This job will run the app and then use `curl` to visit the index-page. This is a smoke detector check that ensures that your app still builds & runs correctly
testAppBuildsAndStarts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.14.2
uses: actions/setup-node@v3
with:
node-version: 16.14.2

# Install packages
- run: npm i

# Generate prisma client & push to db
- run: echo "DATABASE_URL=file:./db.sqlite" > .env
- run: npx prisma db push
- run: npx prisma generate

# start app in dev mode and load `/`-index page
- run: "(timeout 60 npm run dev & (sleep 10 && curl --fail localhost:3000)) && echo Run development check successful"

# build & start app in production mode and load `/`-index page
- run: "npm run build && (timeout 60 npm run preview & (sleep 10 && curl --fail localhost:3000)) && echo Run production check successful"

0 comments on commit a76ee07

Please sign in to comment.