Skip to content

Commit c6d7ae1

Browse files
authored
Merge branch 'feature/optigov' into retro/ci
2 parents 27b455d + 1e3b677 commit c6d7ae1

File tree

16 files changed

+1165
-76
lines changed

16 files changed

+1165
-76
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ env:
99
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
1010
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
1111
OSO_DEVELOPER_API_KEY: ${{ secrets.OSO_DEVELOPER_API_KEY }}
12+
github-token: ${{ secrets.GITHUB_TOKEN }}
13+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_NEW }}
1214

1315
jobs:
1416
lint:
@@ -46,9 +48,9 @@ jobs:
4648
sleep 5
4749
- run: cd packages/ethernaut-common && npm t
4850
- name: Coveralls
49-
uses: coverallsapp/github-action@v2
51+
uses: coverallsapp/github-action@v2.3.6
5052
with:
51-
github-token: ${{ secrets.GITHUB_TOKEN }}
53+
github-token: ${{ secrets.COVERALLS_NEW }}
5254
flag-name: ethernaut-common
5355
parallel: true
5456
ethernaut-oso:
@@ -67,9 +69,9 @@ jobs:
6769
- run: npm run compile --if-present
6870
- run: cd packages/ethernaut-oso && npm t
6971
- name: Coveralls
70-
uses: coverallsapp/github-action@v2
72+
uses: coverallsapp/github-action@v2.3.6
7173
with:
72-
github-token: ${{ secrets.GITHUB_TOKEN }}
74+
github-token: ${{ secrets.COVERALLS_NEW }}
7375
flag-name: ethernaut-oso
7476
parallel: true
7577
ethernaut-optigov:
@@ -88,9 +90,9 @@ jobs:
8890
- run: npm run compile --if-present
8991
- run: cd packages/ethernaut-optigov && npm t
9092
- name: Coveralls
91-
uses: coverallsapp/github-action@v2
93+
uses: coverallsapp/github-action@v2.3.6
9294
with:
93-
github-token: ${{ secrets.GITHUB_TOKEN }}
95+
github-token: ${{ secrets.COVERALLS_NEW }}
9496
flag-name: ethernaut-optigov
9597
parallel: true
9698
ethernaut-util:
@@ -109,9 +111,9 @@ jobs:
109111
- run: npm run compile --if-present
110112
- run: cd packages/ethernaut-util && npm t
111113
- name: Coveralls
112-
uses: coverallsapp/github-action@v2
114+
uses: coverallsapp/github-action@v2.3.6
113115
with:
114-
github-token: ${{ secrets.GITHUB_TOKEN }}
116+
github-token: ${{ secrets.COVERALLS_NEW }}
115117
flag-name: ethernaut-util
116118
parallel: true
117119
ethernaut-util-ui:
@@ -130,9 +132,9 @@ jobs:
130132
- run: npm run compile --if-present
131133
- run: cd packages/ethernaut-util-ui && npm t
132134
- name: Coveralls
133-
uses: coverallsapp/github-action@v2
135+
uses: coverallsapp/github-action@v2.3.6
134136
with:
135-
github-token: ${{ secrets.GITHUB_TOKEN }}
137+
github-token: ${{ secrets.COVERALLS_NEW }}
136138
flag-name: ethernaut-util-ui
137139
parallel: true
138140
ethernaut-ui:
@@ -151,9 +153,9 @@ jobs:
151153
- run: npm run compile --if-present
152154
- run: cd packages/ethernaut-ui && npm t
153155
- name: Coveralls
154-
uses: coverallsapp/github-action@v2
156+
uses: coverallsapp/github-action@v2.3.6
155157
with:
156-
github-token: ${{ secrets.GITHUB_TOKEN }}
158+
github-token: ${{ secrets.COVERALLS_NEW }}
157159
flag-name: ethernaut-ui
158160
parallel: true
159161
ethernaut-interact:
@@ -178,9 +180,9 @@ jobs:
178180
sleep 5
179181
- run: cd packages/ethernaut-interact && npm t
180182
- name: Coveralls
181-
uses: coverallsapp/github-action@v2
183+
uses: coverallsapp/github-action@v2.3.6
182184
with:
183-
github-token: ${{ secrets.GITHUB_TOKEN }}
185+
github-token: ${{ secrets.COVERALLS_NEW }}
184186
flag-name: ethernaut-interact
185187
parallel: true
186188
ethernaut-interact-ui:
@@ -205,9 +207,9 @@ jobs:
205207
sleep 5
206208
- run: cd packages/ethernaut-interact-ui && npm t
207209
- name: Coveralls
208-
uses: coverallsapp/github-action@v2
210+
uses: coverallsapp/github-action@v2.3.6
209211
with:
210-
github-token: ${{ secrets.GITHUB_TOKEN }}
212+
github-token: ${{ secrets.COVERALLS_NEW }}
211213
flag-name: ethernaut-interact-ui
212214
parallel: true
213215
ethernaut-challenges:
@@ -232,9 +234,9 @@ jobs:
232234
sleep 5
233235
- run: cd packages/ethernaut-challenges && npm t
234236
- name: Coveralls
235-
uses: coverallsapp/github-action@v2
237+
uses: coverallsapp/github-action@v2.3.6
236238
with:
237-
github-token: ${{ secrets.GITHUB_TOKEN }}
239+
github-token: ${{ secrets.COVERALLS_NEW }}
238240
flag-name: ethernaut-challenges
239241
parallel: true
240242
ethernaut-ai:
@@ -253,9 +255,9 @@ jobs:
253255
- run: npm run compile --if-present
254256
- run: cd packages/ethernaut-ai && npm t
255257
- name: Coveralls
256-
uses: coverallsapp/github-action@v2
258+
uses: coverallsapp/github-action@v2.3.6
257259
with:
258-
github-token: ${{ secrets.GITHUB_TOKEN }}
260+
github-token: ${{ secrets.COVERALLS_NEW }}
259261
flag-name: ethernaut-ai
260262
parallel: true
261263
ethernaut-ai-ui:
@@ -274,9 +276,9 @@ jobs:
274276
- run: npm run compile --if-present
275277
- run: cd packages/ethernaut-ai-ui && npm t
276278
- name: Coveralls
277-
uses: coverallsapp/github-action@v2
279+
uses: coverallsapp/github-action@v2.3.6
278280
with:
279-
github-token: ${{ secrets.GITHUB_TOKEN }}
281+
github-token: ${{ secrets.COVERALLS_NEW }}
280282
flag-name: ethernaut-ai-ui
281283
parallel: true
282284
ethernaut-network:
@@ -297,9 +299,9 @@ jobs:
297299
- run: npm run compile --if-present
298300
- run: cd packages/ethernaut-network && npm t
299301
- name: Coveralls
300-
uses: coverallsapp/github-action@v2
302+
uses: coverallsapp/github-action@v2.3.6
301303
with:
302-
github-token: ${{ secrets.GITHUB_TOKEN }}
304+
github-token: ${{ secrets.COVERALLS_NEW }}
303305
flag-name: ethernaut-network
304306
parallel: true
305307
ethernaut-network-ui:
@@ -320,9 +322,9 @@ jobs:
320322
- run: npm run compile --if-present
321323
- run: cd packages/ethernaut-network-ui && npm t
322324
- name: Coveralls
323-
uses: coverallsapp/github-action@v2
325+
uses: coverallsapp/github-action@v2.3.6
324326
with:
325-
github-token: ${{ secrets.GITHUB_TOKEN }}
327+
github-token: ${{ secrets.COVERALLS_NEW }}
326328
flag-name: ethernaut-network-ui
327329
parallel: true
328330
ethernaut-wallet:
@@ -347,9 +349,9 @@ jobs:
347349
sleep 5
348350
- run: cd packages/ethernaut-wallet && npm t
349351
- name: Coveralls
350-
uses: coverallsapp/github-action@v2
352+
uses: coverallsapp/github-action@v2.3.6
351353
with:
352-
github-token: ${{ secrets.GITHUB_TOKEN }}
354+
github-token: ${{ secrets.COVERALLS_NEW }}
353355
flag-name: ethernaut-wallet
354356
parallel: true
355357
ethernaut-wallet-ui:
@@ -374,9 +376,9 @@ jobs:
374376
sleep 5
375377
- run: cd packages/ethernaut-wallet-ui && npm t
376378
- name: Coveralls
377-
uses: coverallsapp/github-action@v2
379+
uses: coverallsapp/github-action@v2.3.6
378380
with:
379-
github-token: ${{ secrets.GITHUB_TOKEN }}
381+
github-token: ${{ secrets.COVERALLS_NEW }}
380382
flag-name: ethernaut-wallet-ui
381383
parallel: true
382384
ethernaut-cli:
@@ -395,35 +397,35 @@ jobs:
395397
- run: npm run compile --if-present
396398
- run: cd packages/ethernaut-cli && npm t
397399
- name: Coveralls
398-
uses: coverallsapp/github-action@v2
400+
uses: coverallsapp/github-action@v2.3.6
399401
with:
400-
github-token: ${{ secrets.GITHUB_TOKEN }}
402+
github-token: ${{ secrets.COVERALLS_NEW }}
401403
flag-name: ethernaut-cli
402404
parallel: true
403405
finish:
404406
needs:
405-
- lint
406-
- ethernaut-common
407-
- ethernaut-oso
408-
- ethernaut-optigov
409-
- ethernaut-util
410-
- ethernaut-util-ui
411-
- ethernaut-ui
412-
- ethernaut-interact
413-
- ethernaut-interact-ui
414-
- ethernaut-challenges
415-
- ethernaut-ai
416-
- ethernaut-ai-ui
417-
- ethernaut-network
418-
- ethernaut-network-ui
419-
- ethernaut-wallet
420-
- ethernaut-wallet-ui
421-
- ethernaut-cli
422-
if: ${{ success() }}
407+
[
408+
ethernaut-common,
409+
ethernaut-oso,
410+
ethernaut-optigov,
411+
ethernaut-util,
412+
ethernaut-util-ui,
413+
ethernaut-ui,
414+
ethernaut-interact,
415+
ethernaut-interact-ui,
416+
ethernaut-challenges,
417+
ethernaut-ai,
418+
ethernaut-ai-ui,
419+
ethernaut-network,
420+
ethernaut-network-ui,
421+
ethernaut-wallet,
422+
ethernaut-wallet-ui,
423+
ethernaut-cli,
424+
]
423425
runs-on: ubuntu-latest
424426
steps:
425427
- name: Coveralls Finished
426-
uses: coverallsapp/github-action@v2
428+
uses: coverallsapp/github-action@v2.3.6
427429
with:
430+
github-token: ${{ secrets.COVERALLS_NEW }}
428431
parallel-finished: true
429-
carryforward: 'lint,ethernaut-common,ethernaut-oso,ethernaut-optigov,ethernaut-util,ethernaut-util-ui,ethernaut-ui,ethernaut-interact,ethernaut-interact-ui,ethernaut-challenges,ethernaut-ai,ethernaut-ai-ui,ethernaut-network,ethernaut-network-ui,ethernaut-wallet,ethernaut-wallet-ui,ethernaut-cli'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethernaut-cli-monorepo",
3-
"version": "1.0.0",
3+
"version": "1.1.12",
44
"private": true,
55
"workspaces": [
66
"packages/*"

packages/ethernaut-cli/test/update.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('update', function () {
126126
await terminal.input(keys.ENTER, 2000)
127127
})
128128

129-
it('displays installation', async function () {
129+
it('displays installation message', async function () {
130130
terminal.has('Installing update...')
131131
})
132132
})

packages/ethernaut-optigov/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ This plugin doesn't depend on any other plugins.
3333
This plugin adds the tasks listed below.
3434

3535
- login Logs in to the Agora RetroPGF API with SIWE (Sign in with Ethereum)
36+
- projects Prints a list of projects registered in RetroPGF, given specified filters
37+
- proposals Prints a list of proposals registered in RetroPGF, given specified filters
38+
- delegate Prints a list of delegates on Agora, or details a specific delegate, with optional related data (votes or delegators)
39+
3640

3741
## Environment extensions
3842

0 commit comments

Comments
 (0)