Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
ref: move package.json to root
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Nov 12, 2023
1 parent a1fbc9a commit daee40d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
File renamed without changes.
14 changes: 8 additions & 6 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ on:
push:
branches: [ "main" ]
paths:
- "scripts/**"
- ".github/workflows/eslint.yml"
- "scripts/**"
- "package.json"
- ".eslintrc.js"
pull_request:
branches: [ "main" ]
paths:
- "scripts/**"
- ".github/workflows/eslint.yml"
- "scripts/**"
- "package.json"
- ".eslintrc.js"
schedule:
# Run at 1:45am every Wednesday
- cron: '45 1 * * 3'
Expand All @@ -28,18 +32,16 @@ jobs:
uses: actions/checkout@v4

- name: Install ESLint
working-directory: scripts
run: npm install

- name: Run ESLint
working-directory: scripts
run: npx eslint .
run: npx eslint scripts
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: scripts/eslint-results.sarif
sarif_file: eslint-results.sarif
wait-for-processing: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
package-lock.json
eslint-results.sarif
2 changes: 1 addition & 1 deletion scripts/package.json → package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "UoM Blackboard Theme",
"main": " ",
"scripts": {
"test": "npx eslint ."
"test": "npx eslint scripts"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit daee40d

Please sign in to comment.