11name : AST Javascript wrapper CI
22
33on : [pull_request]
4+
45jobs :
56 integration-tests :
67 runs-on : ubuntu-latest
78 steps :
89 - uses : actions/checkout@v4
10+ with :
11+ lfs : true
12+
13+ - name : Install Git LFS
14+ run : |
15+ sudo apt-get update
16+ sudo apt-get install git-lfs
17+ git lfs install
18+
19+ # GIT CONFIGURATION
20+ - name : Configure Git user
21+ run : |
22+ git config --global user.email "you@example.com"
23+ git config --global user.name "Your Name"
24+
925 - name : Use Node.js 14
1026 uses : actions/setup-node@v4.0.2
1127 with :
1228 node-version : 14
1329 registry-url : https://npm.pkg.github.com/
30+
1431 - run : npm ci
32+
1533 - name : Code Linting
1634 run : npm run lint
35+
1736 - run : npm run build --if-present
37+
38+ - name : Check existence of cx-linux binary
39+ run : |
40+ if [ ! -f "src/main/wrapper/resources/cx-linux" ]; then
41+ echo "cx-linux binary does not exist"; exit 1;
42+ fi
43+
44+ - name : Check existence of cx.exe binary
45+ run : |
46+ if [ ! -f "src/main/wrapper/resources/cx.exe" ]; then
47+ echo "cx.exe binary does not exist"; exit 1;
48+ fi
49+
50+ - name : Check existence of cx-mac binary
51+ run : |
52+ if [ ! -f "src/main/wrapper/resources/cx-mac" ]; then
53+ echo "cx-mac binary does not exist"; exit 1;
54+ fi
55+
1856 - name : Run tests
1957 env :
20- CX_CLIENT_ID : ${{ secrets.CX_CLIENT_ID}}
21- CX_CLIENT_SECRET : ${{ secrets.CX_CLIENT_SECRET}}
58+ CX_CLIENT_ID : ${{ secrets.CX_CLIENT_ID }}
59+ CX_CLIENT_SECRET : ${{ secrets.CX_CLIENT_SECRET }}
2260 CX_BASE_URI : ${{ secrets.CX_BASE_URI }}
2361 CX_TENANT : ${{ secrets.CX_TENANT }}
2462 CX_APIKEY : ${{ secrets.CX_APIKEY }}
25- run : npm test
63+ run : npm test
0 commit comments