We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aadff69 commit a067826Copy full SHA for a067826
1 file changed
.github/workflows/validation.yml
@@ -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
10
11
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