Skip to content

Commit

Permalink
Add dependabot and eslint actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nielm committed Nov 27, 2023
1 parent 21e310c commit bb1ddce
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Worth setting up DependaBot for this? It's just one YAML file away :)

.github/dependabot.yaml:

---
updates:
- directory: "/"
package-ecosystem: "github-actions"
schedule:
interval: "daily"
- directory: "/cloudrun-malware-scanner"
package-ecosystem: "npm"
schedule:
interval: "daily"
- directory: "/cloudrun-malware-scanner"
package-ecosystem: "docker"
schedule:
interval: "daily"
version: 2
...
37 changes: 37 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "ESLint"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]

jobs:
analyze:
name: "Eslint-analyze"
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

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

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODEJS_VERSION }}
check-latest: true
always-auth: true

# Install eslint
- name: Install eslint
working-directory: cloudrun-malware-scanner/
run: npm install eslint eslint-config-google

- name: Run eslint
working-directory: cloudrun-malware-scanner/
run: npm run eslint
2 changes: 1 addition & 1 deletion cloudrun-malware-scanner/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 2020
},
"rules": {
}
Expand Down
2 changes: 1 addition & 1 deletion cloudrun-malware-scanner/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb1ddce

Please sign in to comment.