Skip to content

Commit 466b4f5

Browse files
authored
Create validation.yml
1 parent aadff69 commit 466b4f5

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/validation.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Validate NeuroJson_io Project
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
- main
8+
pull_request:
9+
branches:
10+
- dev
11+
- main
12+
13+
jobs:
14+
validate:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Check out the repository
19+
uses: actions/checkout@v3
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '18'
25+
26+
- name: Install dependencies
27+
run: yarn install
28+
29+
- name: Compile TypeScript
30+
run: yarn build
31+
32+
- name: Run Linter
33+
run: yarn lint
34+
35+
# - name: Check for exposed environment variables
36+
# run: |
37+
# if [ -f ".env" ]; then
38+
# echo "Error: .env file found. Environment variables should not be exposed." >&2
39+
# exit 1
40+
# fi
41+
42+
- name: Run Security Audit
43+
run: yarn audit --level moderate

0 commit comments

Comments
 (0)