@@ -3,43 +3,43 @@ name: Static Analysis - Lint
33
44# When this workflow triggers
55on :
6- # Allows this workflow to be manually run
7- workflow_dispatch :
6+ # Allows this workflow to be manually run
7+ workflow_dispatch :
88
9- # Allow this workflow to be called from another workflow
10- workflow_call :
9+ # Allow this workflow to be called from another workflow
10+ workflow_call :
1111
12- # Run the linting checks on every change
13- push :
14- branches : [ main ]
15- pull_request :
16- branches : [ main ]
12+ # Run the linting checks on every change
13+ push :
14+ branches : [ main ]
15+ pull_request :
16+ branches : [ main ]
1717
1818# Define each session of execution that should be executed
1919jobs :
20- Lint :
21- # Display name of the job
22- name : Lint
23-
24- # Operating system filter for the runners
25- runs-on : ubuntu-latest
26-
27- steps :
28- # Checks-out your repository under $GITHUB_WORKSPACE
29- - uses : actions/checkout@v4
30-
31- # Set up NodeJS on the build host
32- - name : Setup Node.js environment
33- uses : actions/setup-node@v4
34- with :
35- node-version : 20.x
36- cache : npm
37- cache-dependency-path : package-lock.json
38-
39- # Install all of the dependencies
40- - name : Install All of the Project Dependencies
41- run : npm install
42-
43- # Lint the Source code to ensure project standardization and best practices
44- - name : Lint Source Code
45- run : npm run-script lint
20+ Lint :
21+ # Display name of the job
22+ name : Lint
23+
24+ # Operating system filter for the runners
25+ runs-on : ubuntu-latest
26+
27+ steps :
28+ # Checks-out your repository under $GITHUB_WORKSPACE
29+ - uses : actions/checkout@v4
30+
31+ # Set up NodeJS on the build host
32+ - name : Setup Node.js environment
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : 20.x
36+ cache : npm
37+ cache-dependency-path : package-lock.json
38+
39+ # Install all of the dependencies
40+ - name : Install All of the Project Dependencies
41+ run : npm install
42+
43+ # Lint the Source code to ensure project standardization and best practices
44+ - name : Lint Source Code
45+ run : npm run-script lint
0 commit comments