3
3
name : Node.js CI
4
4
5
5
on :
6
- push :
7
- paths-ignore :
8
- - ' README.md'
9
- - ' .github/**'
10
- - ' .dockerignore'
11
- - ' docker-compose.yml'
12
- - ' Dockerfile'
13
- branches :
14
- - main
15
- pull_request :
16
- paths-ignore :
17
- - ' README.md'
18
- - ' .github/**'
19
- - ' .dockerignore'
20
- - ' docker-compose.yml'
21
- - ' Dockerfile'
22
- branches :
23
- - main
24
- schedule :
25
- # execute once every monday
26
- - cron : " 0 0 * * MON"
6
+ push :
7
+ paths-ignore :
8
+ - " README.md"
9
+ - " .github/**"
10
+ - " .dockerignore"
11
+ - " docker-compose.yml"
12
+ - " Dockerfile"
13
+ branches :
14
+ - dev
15
+ schedule :
16
+ # execute once every monday
17
+ - cron : " 0 0 * * 1"
27
18
28
19
jobs :
29
- build :
30
- runs-on : ubuntu-latest
31
- steps :
32
- - name : Checkout repository
33
- uses : actions/checkout@v2
20
+ build :
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - name : Checkout repository
24
+ uses : actions/checkout@v4
34
25
35
- - name : Install Node v16
36
- uses : actions/setup-node@v2
37
- with :
38
- node-version : 16
39
-
40
- - uses : pnpm/action-setup@v2
41
- name : Install pnpm
42
- id : pnpm-install
43
- with :
44
- version : 7
45
- run_install : false
26
+ - name : Install Node v22
27
+ uses : actions/setup-node@v4
28
+ with :
29
+ node-version : 22
46
30
47
- - name : Get pnpm store directory
48
- id : pnpm-cache
49
- shell : bash
50
- run : |
51
- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
31
+ - uses : pnpm/action-setup@v4
32
+ name : Install pnpm
33
+ id : pnpm-install
34
+ with :
35
+ version : 10
36
+ run_install : false
52
37
53
- - uses : actions/cache@v3
54
- name : Setup pnpm cache
55
- with :
56
- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
57
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
58
- restore-keys : |
59
- ${{ runner.os }}-pnpm-store-
38
+ - name : Get pnpm store directory
39
+ id : pnpm-cache
40
+ shell : bash
41
+ run : |
42
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
60
43
61
- - name : Install dependencies
62
- run : pnpm install
63
- analyze :
64
- name : Analyze
65
- runs-on : ubuntu-latest
66
- permissions :
67
- actions : read
68
- contents : read
69
- security-events : write
70
- strategy :
71
- fail-fast : false
72
- matrix :
73
- language : ["javascript"]
74
- steps :
75
- - name : Checkout repository
76
- uses : actions/checkout@v2
77
- - name : Initialize CodeQL
78
- uses : github/codeql-action/init@v1
79
- with :
80
- languages : ${{ matrix.language }}
81
- - name : Autobuild
82
- uses : github/codeql-action/autobuild@v1
83
- - name : Perform CodeQL Analysis
84
- uses : github/codeql-action/analyze@v1
44
+ - uses : actions/cache@v4
45
+ name : Setup pnpm cache
46
+ with :
47
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
48
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49
+ restore-keys : |
50
+ ${{ runner.os }}-pnpm-store-
51
+
52
+ - name : Install dependencies
53
+ run : pnpm install
54
+ analyze :
55
+ name : Analyze
56
+ runs-on : ubuntu-latest
57
+ permissions :
58
+ actions : read
59
+ contents : read
60
+ security-events : write
61
+ strategy :
62
+ fail-fast : false
63
+ matrix :
64
+ language : ["javascript"]
65
+ steps :
66
+ - name : Checkout repository
67
+ uses : actions/checkout@v4
68
+ - name : Initialize CodeQL
69
+ uses : github/codeql-action/init@v3
70
+ with :
71
+ languages : ${{ matrix.language }}
72
+ - name : Autobuild
73
+ uses : github/codeql-action/autobuild@v3
74
+ - name : Perform CodeQL Analysis
75
+ uses : github/codeql-action/analyze@v3
0 commit comments