Skip to content

Commit

Permalink
✅ Add CI Action
Browse files Browse the repository at this point in the history
  • Loading branch information
UltiRequiem committed Nov 2, 2021
1 parent d752f3b commit e56ee27
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/actions/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI

on: [push, pull_request]

jobs:
lint:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn
- run: yarn lint
2 changes: 1 addition & 1 deletion models.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ const SnippetSchema = new mongoose.Schema({
});

// eslint-disable-next-line import/prefer-default-export
export const Snippet = mongoose.models.Snippet || mongoose.model('snippet', SnippetSchema);
export const Snippet = mongoose.models.snippet || mongoose.model('snippet', SnippetSchema);
3 changes: 2 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable unicorn/prefer-module */
module.exports = {
reactStrictMode: true,
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "eslint ."
},
"dependencies": {
"bootstrap": "^5.1.3",
Expand Down

0 comments on commit e56ee27

Please sign in to comment.