File tree Expand file tree Collapse file tree 8 files changed +1
-70
lines changed
src/main/wrapper/resources Expand file tree Collapse file tree 8 files changed +1
-70
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- uses : actions/checkout@v4
9
- with :
10
- lfs : true
11
-
12
- - name : Install Git LFS
13
- run : |
14
- sudo apt-get update
15
- sudo apt-get install git-lfs
16
- git lfs install
17
9
18
10
- name : Use Node.js 14
19
11
25
17
run : npm run lint
26
18
- run : npm run build --if-present
27
19
28
- - name : Check existence of cx-linux binary
29
- run : |
30
- if [ ! -f "src/main/wrapper/resources/cx-linux" ]; then
31
- echo "cx-linux binary does not exist"; exit 1;
32
- fi
33
-
34
- - name : Check existence of cx.exe binary
35
- run : |
36
- if [ ! -f "src/main/wrapper/resources/cx.exe" ]; then
37
- echo "cx.exe binary does not exist"; exit 1;
38
- fi
39
-
40
- - name : Check existence of cx-mac binary
41
- run : |
42
- if [ ! -f "src/main/wrapper/resources/cx-mac" ]; then
43
- echo "cx-mac binary does not exist"; exit 1;
44
- fi
45
-
46
20
- name : Run tests
47
21
env :
48
22
CX_CLIENT_ID : ${{ secrets.CX_CLIENT_ID}}
Original file line number Diff line number Diff line change 58
58
- uses : actions/checkout@v4
59
59
with :
60
60
fetch-depth : 0
61
- lfs : true # Ensure LFS files are checked out
62
61
63
62
# GIT CONFIGURATION
64
63
- run : |
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v4
12
- with :
13
- lfs : true
14
-
15
- - name : Install Git LFS
16
- run : |
17
- sudo apt-get update
18
- sudo apt-get install git-lfs
19
- git lfs install
20
-
21
- - name : Configure Git user
22
- run : |
23
- git config --global user.name github-actions
24
- git config --global user.email [email protected]
25
12
26
13
- name : Get Latest Checkmarx API version
27
14
id : checkmarx-ast-cli
37
24
# Update current release
38
25
echo ${{ steps.checkmarx-ast-cli.outputs.release_tag }} > checkmarx-ast-cli.version
39
26
40
- - name : Download latest cli and update branch
41
- if : steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
42
- run : |
43
- # Update binaries
44
- chmod +x ./.github/scripts/update_cli.sh
45
- ./.github/scripts/update_cli.sh ${{ steps.checkmarx-ast-cli.outputs.release_tag }}
46
-
47
- - name : Track large files with Git LFS
48
- if : steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
49
- run : |
50
- git lfs track "src/main/wrapper/resources/cx-linux"
51
- git lfs track "src/main/wrapper/resources/cx.exe"
52
- git lfs track "src/main/wrapper/resources/cx-mac"
53
- git add .gitattributes
54
- git add src/main/wrapper/resources/cx-linux src/main/wrapper/resources/cx.exe src/main/wrapper/resources/cx-mac
55
- git commit -m "Track Checkmarx CLI binaries with Git LFS"
56
-
57
27
- name : Create Pull Request
58
28
if : steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
59
29
uses : peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
Original file line number Diff line number Diff line change 1
- 2.2.6
1
+ 2.2.5
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments