55# Controls when the workflow will run
66on :
77 push :
8- branches : [ master, Stable-Test, QA-Test ]
8+ branches : [master, Stable-Test, QA-Test]
99 pull_request :
10- branches : [ master, Stable-Test, QA-Test ]
1110
1211 # Allows you to run this workflow manually from the Actions tab
1312 workflow_dispatch :
@@ -27,21 +26,28 @@ jobs:
2726 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2827 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2928
30- - name : Use Node.js 19.6.0
29+ - name : Use Node.js 20.15.1
3130 uses : actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
3231 with :
33- node-version : ' 19.6.0'
34-
35- - name : Install truffle
36- run : npm install -g truffle
32+ node-version : " 20.15.1"
3733
3834 - name : NPM Login
39- run : npm config set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37+ run : npm config set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
4038
4139 - name : Install dependencies
4240 run : npm ci
43- # - name: Lint source and tests
44- # run: npm run lint
41+
42+ - name : Lint contracts
43+ run : npm run lint:sol
44+
45+ - name : Compile contracts
46+ run : npm run compile
47+
48+ - name : Lint test and scripts
49+ run : npm run lint:ts
50+
4551 - name : Unit test smart contracts
4652 run : npm test
4753 # - name: Coverage report
0 commit comments