File tree Expand file tree Collapse file tree 2 files changed +81
-0
lines changed
Expand file tree Collapse file tree 2 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Localstack Tests
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ alchemy-api-key :
7+ description : ' API key for Alchemy'
8+ required : true
9+ type : string
10+ infura-project-id :
11+ description : ' Project ID for Infura'
12+ required : true
13+ type : string
14+ etherscan-api-key :
15+ description : ' API key for Etherscan'
16+ required : true
17+ type : string
18+ sonar-token :
19+ description : ' Token for SonarCloud/ SonarQube'
20+ required : true
21+ type : string
22+ sonar-host-url :
23+ description : ' URL of Sonar server'
24+ required : true
25+ type : string
26+ node-version :
27+ description : ' Node.js version to use'
28+ required : false
29+ type : string
30+ default : ' 18'
31+
32+ jobs :
33+ test :
34+ runs-on : ubuntu-latest
35+ env :
36+ ALCHEMY_API_KEY : ${{ inputs.alchemy-api-key }}
37+ INFURA_PROJECT_ID : ${{ inputs.infura-project-id }}
38+ ETHERSCAN_API_KEY : ${{ inputs.etherscan-api-key }}
39+ SONAR_TOKEN : ${{ inputs.sonar-token }}
40+ SONAR_HOST_URL : ${{ inputs.sonar-host-url }}
41+
42+ steps :
43+ - name : Checkout repository
44+ uses : actions/checkout@v4
45+
46+ - name : Setup Node.js
47+ uses : actions/setup-node@v4
48+ with :
49+ node-version : ${{ inputs.node-version }}
50+
51+ - name : Install dependencies
52+ run : npm ci
53+
54+ - name : Prepare local stack
55+ id : prepare
56+ run : npm run start-test-stack
57+
58+ - name : Build
59+ run : npm run build
60+
61+ - name : Check format
62+ run : npm run check-format
63+
64+ - name : Lint
65+ run : npm run lint
66+
67+ - name : Install global & Test
68+ run : |
69+ sudo apt-get update
70+ sudo apt-get install -y xxd
71+ npm install -g .
72+ npm test
73+
74+ - name : SonarScanner
75+ uses :
SonarSource/[email protected] 76+ env :
77+ SONAR_TOKEN : ${{ inputs.sonar-token }}
78+ SONAR_HOST_URL : ${{ inputs.sonar-host-url }}
Original file line number Diff line number Diff line change 1+ # Localstack Tests
2+
3+ doc
You can’t perform that action at this time.
0 commit comments