-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.56 KB
/
Test-Lint.yml
File metadata and controls
54 lines (43 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Display Name of the workflow
name: Static Analysis - Lint
# When this workflow triggers
on:
# Allows this workflow to be manually run
workflow_dispatch:
# Allow this workflow to be called from another workflow
workflow_call:
# Run the linting checks on every change
push:
branches: [main]
pull_request:
branches: [main]
# Define each session of execution that should be executed
jobs:
Lint:
# Display name of the job
name: Lint
# Operating system filter for the runners
runs-on: ubuntu-latest
# Sets the scopes available to the github_token injected to the GH Actions runner
permissions:
contents: read
# Set of steps to run to lint the project
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v6
# Set up NodeJS on the build host
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
cache-dependency-path: package-lock.json
# Install all of the dependencies
- name: Install All of the Project Dependencies
run: npm install
# Compile the Typescript files to JS
- name: Build Project
run: npm run-script build:Dev
# Lint the Source code to ensure project standardization and best practices
- name: Lint Source Code
run: npm run-script lint