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
18 changes: 18 additions & 0 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,29 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install ESLint
run: |
cd itu-minitwit-node
npm install eslint@8.10.0
npm install @microsoft/eslint-formatter-sarif@2.1.7
npx eslint ./**

#- name: ESLint
#
# run: |
# cd itu-minitwit-node/
# npm install
# npm run lint

- name: Giving permissions to logger files
run: |
sudo mkdir -p /var/log/minitwit
Expand Down
3 changes: 2 additions & 1 deletion itu-minitwit-node/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Dockerfile
*.css
*.json
Vagrantfile
*.md
*.md
bin/
2 changes: 2 additions & 0 deletions itu-minitwit-node/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ module.exports = {
overrides: [
{
"files": ["**/*.js"],
"excludedFiles": ["bin/*"],
}
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {},
ignorePatterns: ['./bin/'],
};
3 changes: 2 additions & 1 deletion itu-minitwit-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"run-tests": "npx mocha ./tests/ --exit",
"cy:open": "cypress open",
"cy:closed": "cypress run --headless --browser chrome",
"cy:test": "start-server-and-test start http://localhost:3000/api/ cy:closed"
"cy:test": "start-server-and-test start http://localhost:3000/api/ cy:closed",
"lint": "npx eslint ./**"
},
"dependencies": {
"@elastic/ecs-winston-format": "^1.3.1",
Expand Down