Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRep explorer, Critical displaying fixes and recent design changes and enhancements, recent GH action updates #873

Merged
merged 198 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
e3ae5e3
fix resolutions
Sworzen1 Apr 4, 2024
0d54491
replace ternary operator with if statement
Sworzen1 Apr 5, 2024
8e9ab20
[#216] add Automated Voting Options component
Sworzen1 Feb 27, 2024
1c4012d
[#217] add dRep directory page and nav items
j-dyczka Mar 6, 2024
dea8c29
[#217] use translations in menu items
j-dyczka Mar 8, 2024
1c44199
[#216] use Accordion from MUI to improve user experience
j-dyczka Mar 8, 2024
7a40c80
[#219] create details page for drep in drep directory
Sworzen1 Feb 28, 2024
5cf3940
[#219] reorder translations
MSzalowski Mar 1, 2024
cd93e51
[#219] fetch data for DRep details page
j-dyczka Mar 21, 2024
906e094
[#219] fetch data for DRep details page
j-dyczka Mar 21, 2024
4985a75
[#220] add styling for DRepCard in default state
j-dyczka Mar 6, 2024
3ff60d5
[#220] fetch data for drep list
j-dyczka Mar 21, 2024
742c886
[#216] add logic for automated voting options
j-dyczka Mar 22, 2024
d0650b9
[#220] changes after CR
j-dyczka Mar 27, 2024
7fc84a0
[#220] fix drep list infinite loader for unnconnected users
j-dyczka Mar 27, 2024
61b0d08
[#221] add search, filter and sort to drep list
j-dyczka Mar 26, 2024
82b1544
fix: change edit drep navigation path
MSzalowski Apr 5, 2024
c410b35
Merge pull request #639 from IntersectMBO/feat/99-drep-directory
MSzalowski Apr 5, 2024
8f7ed22
[#545] change footer component
Sworzen1 Apr 5, 2024
aff3fa2
Merge pull request #625 from IntersectMBO/fix/532-home-page-on-2560-a…
Sworzen1 Apr 5, 2024
d1aed81
Merge branch 'develop' of https://github.com/IntersectMBO/govtool int…
Sworzen1 Apr 5, 2024
8ddd302
[#545] add footer to drep directory
Sworzen1 Apr 5, 2024
bbaee21
bugfix: change dispatch condition on deployment workflows
MSzalowski Apr 5, 2024
f585328
Merge pull request #645 from IntersectMBO/bugfix/change-dispatch-on-c…
placek Apr 8, 2024
82c80b6
[#617] feat: integrate frontend with metadata validation service
MSzalowski Apr 3, 2024
7f439dc
Merge pull request #619 from IntersectMBO/feat/617-integrate-frontend…
MSzalowski Apr 8, 2024
9cdd397
Merge pull request #642 from IntersectMBO/chore/545-create-shared-foo…
Sworzen1 Apr 8, 2024
fe2146f
[#641] fix sole voter card
Sworzen1 Apr 8, 2024
8426b3d
[#627] add latestTxHash to drep/list and drep/info endpoints
jankun4 Apr 7, 2024
e813b7b
[#626] add to endpoint
jankun4 Apr 7, 2024
7afb1d7
[#641] fix lint
Sworzen1 Apr 8, 2024
77a2a33
[#669] update delegation card
Sworzen1 Apr 8, 2024
44cafba
fix drep card
Sworzen1 Apr 8, 2024
eff5118
[#646] feat: implement a loading modal for the metadata validation
MSzalowski Apr 8, 2024
2b11b13
[# 669] new translations
Sworzen1 Apr 8, 2024
a2487d1
Merge pull request #670 from IntersectMBO/fix/641-dashboard-sole-volt…
Sworzen1 Apr 8, 2024
6ab0e75
Merge branch 'develop' of https://github.com/IntersectMBO/govtool int…
Sworzen1 Apr 8, 2024
3a1cf02
Merge pull request #672 from IntersectMBO/feat/646-implement-a-loadin…
MSzalowski Apr 9, 2024
e9cdbea
[#636] add references to all proposal related endpoints
jankun4 Apr 7, 2024
efa2df0
[#637] Create atoms components ui tests
JanJaroszczak Apr 5, 2024
851201f
[#676] fix drep/info SQL error
jankun4 Apr 9, 2024
5eeb63f
Merge pull request #677 from IntersectMBO/676-error-500-when-requesti…
MSzalowski Apr 9, 2024
7349c2b
Merge pull request #675 from IntersectMBO/develop
pmbinapps Apr 9, 2024
8e11410
[#609] feat: add metadata validation against cip fields
MSzalowski Apr 9, 2024
8dba540
[#669] add todo comment
Sworzen1 Apr 10, 2024
711d3a4
Merge pull request #671 from IntersectMBO/chore/669-update-delegate-card
Sworzen1 Apr 10, 2024
b703d8d
[#685] fix getVotes 500 error
jankun4 Apr 10, 2024
2790e15
[#678] Apply specific CORS parameters for metadata-validation service
placek Apr 11, 2024
51b9431
Use a variable to determine the target
placek Apr 11, 2024
332733e
[#687]change voting power displaying
Sworzen1 Apr 11, 2024
9f2d5ab
[#655] fix: fix DRep registration when the DRep name is longer
MSzalowski Apr 11, 2024
2fc7e74
Merge pull request #690 from IntersectMBO/chore/678-setting-cors-poli…
placek Apr 11, 2024
01bbc02
Merge pull request #668 from IntersectMBO/637-create-atoms-components…
JanJaroszczak Apr 11, 2024
93662e4
fix: fix api connection
MSzalowski Apr 11, 2024
a0408f8
Merge pull request #696 from IntersectMBO/fix/fix-api-connection
placek Apr 11, 2024
5f6cbc4
[#681] add loader in drep direcotry
Sworzen1 Apr 11, 2024
3d82281
[#681] add loader in drep details
Sworzen1 Apr 11, 2024
e33ffbf
Merge pull request #684 from IntersectMBO/feat/609-add-metadata-valid…
MSzalowski Apr 12, 2024
8e2a22b
fix: fix api connection
MSzalowski Apr 11, 2024
e257ac1
[#689] add tx hash to the ada-holder/get-current-delegation
jankun4 Apr 12, 2024
087fb69
[#688] split latest txHash in drep/info
jankun4 Apr 12, 2024
a094e88
Merge pull request #701 from IntersectMBO/fix/add-missing-slash-to-api
MSzalowski Apr 12, 2024
94fb7de
[#685] fix getVotes 500 error
jankun4 Apr 10, 2024
27fa812
[#681] change styles
Sworzen1 Apr 12, 2024
7a3647e
Merge pull request #691 from IntersectMBO/fix/687-voting-power-chip-i…
Sworzen1 Apr 12, 2024
f3f3f8b
[#678] Build images that cannot be pulled from repositories
placek Apr 12, 2024
a4ee118
[#678] Add Google Tag Manager to the img-src CSP directive
placek Apr 12, 2024
c38b70c
Merge pull request #706 from IntersectMBO/fix/get-votes-500
MSzalowski Apr 12, 2024
8d97531
[#699] GA - card - very long title without spaces goes beyond card
JanJaroszczak Apr 12, 2024
f9bbeaa
Merge pull request #708 from IntersectMBO/fix/707-bug-in-building-met…
placek Apr 12, 2024
afadc29
[#637] VotingPowerChips test file fix
JanJaroszczak Apr 14, 2024
ca1677d
Merge pull request #709 from IntersectMBO/699-ga-card-very-long-title…
JanJaroszczak Apr 14, 2024
5bc1c62
Add allure reporting in backend test
mesudip Apr 15, 2024
f24c696
Merge pull request #705 from IntersectMBO/feat/681-add-loaders-to-the…
Sworzen1 Apr 15, 2024
9fdb3ff
[#720] fix drep/info null values
jankun4 Apr 15, 2024
0f3ca5a
[#715] rename the routers names to distinguish them from the service …
placek Apr 15, 2024
f7f61c2
[#715] Fix indentation in Traefik configuration in docker-compose file
placek Apr 15, 2024
0856db4
[#715] Update Traefik image version to v3.0
placek Apr 15, 2024
c47e0e9
[#715] Apply better priorities to the routing
placek Apr 15, 2024
6a1968a
[#715] Add healthchecks to two main backend services from Traefik loa…
placek Apr 15, 2024
aaecda0
[#715] Add additional CORS exception for dev environment
placek Apr 15, 2024
773c9ca
Merge pull request #692 from IntersectMBO/fix/655-bt-drep-registratio…
MSzalowski Apr 15, 2024
3266728
[#710] fix displaying modals to not block signing transactions
MSzalowski Apr 12, 2024
94d1a53
[#640] add search query param to the drep/getVotes
jankun4 Apr 15, 2024
c8f1df5
[#674] GA Search - Voted on - Add search functionality
JanJaroszczak Apr 15, 2024
cc64e97
Merge pull request #728 from IntersectMBO/fix/715-dev-environment-loa…
placek Apr 16, 2024
011ae46
remove pytest version constraint
mesudip Apr 16, 2024
bb152df
[#723] Apply business logic to drep list
JanJaroszczak Apr 15, 2024
b55aca2
[#712] fix: Fix displaying Governance Actions that fails the validati…
MSzalowski Apr 15, 2024
411db90
Merge pull request #711 from IntersectMBO/fix/710-fix-displaying-moda…
MSzalowski Apr 16, 2024
d709d4f
Publish report to gh-pages
NabinKawan Apr 16, 2024
0002e4d
Merge pull request #730 from IntersectMBO/fix/712-gas-fails-validatio…
MSzalowski Apr 16, 2024
cbabaff
[#651] fix: correct text of governance action type
MSzalowski Apr 8, 2024
4f5aa94
Merge pull request #665 from IntersectMBO/fix/651-text-correction
MSzalowski Apr 16, 2024
c040711
[#546] init usersnap in project
Sworzen1 Apr 9, 2024
ace8a05
[#546] add to changelog
Sworzen1 Apr 9, 2024
2fb5031
[#546] fix lint
Sworzen1 Apr 9, 2024
0af6a23
[#546] move provider types/change names
Sworzen1 Apr 11, 2024
20b0cd2
[#722] add filtering and sorting to drep/list
jankun4 Apr 15, 2024
09e54d2
Merge pull request #734 from IntersectMBO/723-apply-business-logic-ba…
JanJaroszczak Apr 16, 2024
c001213
Merge pull request #735 from IntersectMBO/674-ga-search-voted-on-add-…
JanJaroszczak Apr 16, 2024
0382ff4
[#546] move types
Sworzen1 Apr 16, 2024
af52738
Merge pull request #682 from IntersectMBO/chore/546-handle-action-of-…
Sworzen1 Apr 16, 2024
795db48
docs: open source preparations
Ryun1 Apr 16, 2024
b239443
docs: update intersect security policy email address
Ryun1 Apr 16, 2024
5eca5fd
replace adanordic with cexplorer
Sworzen1 Apr 5, 2024
4746a08
use string template
Sworzen1 Apr 5, 2024
6a211d9
[#] add tx hash into voted card
Sworzen1 Apr 10, 2024
c07e285
add tx hash into stories
Sworzen1 Apr 10, 2024
1ec36a8
changes after update current delegation endpoints
Sworzen1 Apr 16, 2024
f43ad25
packages
Sworzen1 Apr 16, 2024
ed464e5
update patch
Sworzen1 Apr 16, 2024
7978473
update modules
Sworzen1 Apr 16, 2024
8923d97
fix drep direcotry
Sworzen1 Apr 16, 2024
b4f132f
Merge pull request #632 from IntersectMBO/chore/573-link-to-cexplorer…
Sworzen1 Apr 16, 2024
7fc7f6e
[#464] add tooltips for gov actions
Sworzen1 Apr 16, 2024
70ffc9f
Add allure-report generation for playwright tests
NabinKawan Apr 17, 2024
c42dc09
[#755] add open choose wallet modal into drep direcotry
Sworzen1 Apr 17, 2024
36508f9
[#738] add function opened guide for automated options
Sworzen1 Apr 17, 2024
3e3239d
[#741] navigate from drep directory to connected drep directory
Sworzen1 Apr 17, 2024
b0a378f
[#604] GA Display: search, sort and filter is not kept after Back fro…
JanJaroszczak Apr 17, 2024
0eb2d9f
Merge pull request #717 from IntersectMBO/feat/pytest-allure-reports
NabinKawan Apr 18, 2024
6af07d8
[#714] Update Cardano DB Sync to version "sancho-4.2.0"
placek Apr 18, 2024
77fbee8
Merge pull request #751 from IntersectMBO/feat/playwright-allure-reports
NabinKawan Apr 18, 2024
8bfe972
[#509 #752] Wallet transaction errors modals
JanJaroszczak Apr 17, 2024
bf9b915
Merge pull request #765 from IntersectMBO/chore/714-updating-and-rest…
placek Apr 18, 2024
82ed132
Add mock wallet & Implement mock wallet extension injection into wind…
NabinKawan Apr 17, 2024
6aaaad3
Replace mock wallet implementation with bundled mock wallet package
NabinKawan Apr 18, 2024
35d0e2d
Merge pull request #745 from IntersectMBO/feat/464-missing-info-icon-…
Sworzen1 Apr 18, 2024
214c978
Merge pull request #757 from IntersectMBO/fix/drep-direcotry
Sworzen1 Apr 18, 2024
0498513
[#509 #752] Fix after CR
JanJaroszczak Apr 18, 2024
48219eb
[#604] Implementing dataActionsBar context for all other DataActionsB…
JanJaroszczak Apr 18, 2024
6096a5a
[#604] dataActionsBar refactor
JanJaroszczak Apr 18, 2024
acf757f
Additional fix for DRepDirectoryContent
JanJaroszczak Apr 18, 2024
6bcfb12
Merge pull request #766 from IntersectMBO/509-752-wallet-errors
JanJaroszczak Apr 18, 2024
0ec1ddd
Merge pull request #758 from IntersectMBO/604-bt-ga-display-searching…
JanJaroszczak Apr 18, 2024
cfb4c0d
[#714] Update Cardano DB Sync with fixed configuration files
placek Apr 19, 2024
ac35258
Merge pull request #774 from IntersectMBO/chore/714-updating-and-rest…
placek Apr 19, 2024
f65c68f
chore: add usersnap api key to frontend makefile
MSzalowski Apr 19, 2024
8d448a9
chore: enable coverage unit tests report
MSzalowski Apr 17, 2024
f403fdb
chore: add unit tests coverage badges
MSzalowski Apr 19, 2024
2f4c557
Merge pull request #775 from IntersectMBO/chore/usersnap-secrets
MSzalowski Apr 19, 2024
0ab55d5
add tests
Sworzen1 Apr 19, 2024
df9ccfc
Merge pull request #764 from IntersectMBO/chore/enable-coverage-unit-…
MSzalowski Apr 19, 2024
014121f
[#464] add tooltips for gov actions
Sworzen1 Apr 16, 2024
ea93b54
[#755] add open choose wallet modal into drep direcotry
Sworzen1 Apr 17, 2024
c51f155
[#738] add function opened guide for automated options
Sworzen1 Apr 17, 2024
e5f0a6a
[#741] navigate from drep directory to connected drep directory
Sworzen1 Apr 17, 2024
59d191b
[#509 #752] Wallet transaction errors modals
JanJaroszczak Apr 17, 2024
a3c5403
[#509 #752] Fix after CR
JanJaroszczak Apr 18, 2024
ebb0989
[#604] GA Display: search, sort and filter is not kept after Back fro…
JanJaroszczak Apr 17, 2024
4be4494
[#604] Implementing dataActionsBar context for all other DataActionsB…
JanJaroszczak Apr 18, 2024
e1722d9
[#604] dataActionsBar refactor
JanJaroszczak Apr 18, 2024
44a6d90
Additional fix for DRepDirectoryContent
JanJaroszczak Apr 18, 2024
e400df2
[#714] Update Cardano DB Sync with fixed configuration files
placek Apr 19, 2024
541d783
chore: add usersnap api key to frontend makefile
MSzalowski Apr 19, 2024
b3e9b8f
chore: enable coverage unit tests report
MSzalowski Apr 17, 2024
53c4971
chore: add unit tests coverage badges
MSzalowski Apr 19, 2024
a1b3dde
Create new wallet if wallet is missing
NabinKawan Apr 19, 2024
228ac76
Merge pull request #750 from IntersectMBO/feat/mock-wallet
NabinKawan Apr 19, 2024
5483dd3
nix: fix frontend
disassembler Apr 18, 2024
fce6145
Merge remote-tracking branch 'origin/develop' into pretest
MSzalowski Apr 19, 2024
a210181
Merge pull request #779 from IntersectMBO/pretest
pmbinapps Apr 19, 2024
37e3c32
chore: update the copy text on the maintence page
Ryun1 Apr 17, 2024
4e899e4
docs: update the copy on maintence page
Ryun1 Apr 17, 2024
7d21596
fix: typo on maintence page
Ryun1 Apr 18, 2024
0ab65e8
add test - part 2
JanJaroszczak Apr 21, 2024
56868e9
add tests - part 3
JanJaroszczak Apr 22, 2024
ecd4cc9
[#756] add pagination to drep/list
jankun4 Apr 21, 2024
d6cee86
add tests - part 4
JanJaroszczak Apr 22, 2024
e203a74
[#742] Create a status-service AWS registry
placek Apr 22, 2024
9aa6ab9
[#742] Create a metadata-validation AWS registry
placek Apr 22, 2024
fd3df1b
[#742] Add status service docker image utilization to the deploy stack
placek Apr 22, 2024
553fa0e
[#742] Add metadata-validation docker image utilization to the deploy…
placek Apr 22, 2024
7a00b94
[#826] fix drep/list sql
jankun4 Apr 22, 2024
c6d5469
Merge pull request #819 from IntersectMBO/fix/742-missing-context-for…
placek Apr 22, 2024
cebfb6c
fix: fix footer alignment across pages
MSzalowski Apr 22, 2024
84cab12
Merge pull request #828 from IntersectMBO/826-no-dreps-found-in-dreplist
MSzalowski Apr 22, 2024
c3be91c
Merge pull request #827 from IntersectMBO/fix/footer-sticks-to-the-en…
MSzalowski Apr 22, 2024
897c316
[#740] feat: add drep list pagination
MSzalowski Apr 22, 2024
65e3173
[#740] fix: fix type check error on useDelegateTodRepForm hook
MSzalowski Apr 22, 2024
752cb11
fix: hasNextPage and fetchNextPage fix
JanJaroszczak Apr 23, 2024
c665d41
fix: Status modal error message overflow
JanJaroszczak Apr 23, 2024
cb45099
fix: DelegateDashboardCard transactionId fix
JanJaroszczak Apr 23, 2024
32259c6
Merge pull request #853 from IntersectMBO/status-modal-fix
JanJaroszczak Apr 23, 2024
95fd308
fix loaders
Sworzen1 Apr 24, 2024
f1987ed
Merge pull request #777 from IntersectMBO/chore/utils-tests
Sworzen1 Apr 24, 2024
d5f7f23
add incorect format error type
Sworzen1 Apr 24, 2024
0fcd24a
[#849] Configure sanchogov.tools sub-domain for the analytics service
adgud Apr 24, 2024
da2d6c2
add test ids for drep directory
Sworzen1 Apr 24, 2024
68a688a
Merge pull request #862 from IntersectMBO/chore/add-data-test-id-in-d…
Sworzen1 Apr 24, 2024
b35529f
Merge pull request #860 from IntersectMBO/849-subdomains
placek Apr 24, 2024
687a8dd
fix missing ga data
MSzalowski Apr 24, 2024
7f86404
Merge pull request #859 from IntersectMBO/fix/metadata-validation
Sworzen1 Apr 24, 2024
d8a1584
Merge pull request #858 from IntersectMBO/fix/loaders
Sworzen1 Apr 24, 2024
1661217
change mocked data
Sworzen1 Apr 24, 2024
b8c2d0c
Merge pull request #863 from IntersectMBO/chore/add-supported-links
Sworzen1 Apr 24, 2024
57c56d9
Merge pull request #864 from IntersectMBO/develop
pmbinapps Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-and-deploy-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }}
IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }}
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }}
IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }}
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }}
IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }}
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
PIPELINE_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
IP_ADDRESS_BYPASSING_BASIC_AUTH1: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH1 }}
IP_ADDRESS_BYPASSING_BASIC_AUTH2: ${{ secrets.IP_ADDRESS_BYPASSING_BASIC_AUTH2 }}
USERSNAP_SPACE_API_KEY: ${{ secrets.USERSNAP_SPACE_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ jobs:
- name: Run build and lighthouse task
working-directory: ./govtool/frontend
run: |
npm install
VITE_BASE_URL=https://staging.govtool.byron.network/api npm run build
lhci collect
npm install
VITE_BASE_URL=https://staging.govtool.byron.network/ npm run build
lhci collect

- name: Evaluate reports
if: github.repository_owner != 'IntersectMBO'
run: |
lhci assert --preset "lighthouse:recommended"
lhci assert --preset "lighthouse:recommended"

- name: Publish reports
working-directory: ./govtool/frontend
if: github.repository_owner == 'IntersectMBO'
run: |
lhci assert --preset lighthouse:recommended || echo "LightHouse Assertion error ignored ..."
lhci upload --githubAppToken="${{ secrets.LHCI_GITHUB_APP_TOKEN }}" --token="${{ secrets.LHCI_SERVER_TOKEN }}" --serverBaseUrl=https://lighthouse.cardanoapi.io --ignoreDuplicateBuildFailure
curl -X POST https://ligththouse.cardanoapi.io/api/metrics/build-reports \
-d "@./lighthouseci/$(ls ./.lighthouseci |grep 'lhr.*\.json' | head -n 1)" \
-H "commit-hash: $(git rev-parse HEAD)" \
-H "secret-token: ${{ secrets.METRICS_SERVER_SECRET_TOKEN }}" \
-H 'Content-Type: application/json' || echo "Metric Upload error ignored ..."
lhci assert --preset lighthouse:recommended || echo "LightHouse Assertion error ignored ..."
lhci upload --githubAppToken="${{ secrets.LHCI_GITHUB_APP_TOKEN }}" --token="${{ secrets.LHCI_SERVER_TOKEN }}" --serverBaseUrl=https://lighthouse.cardanoapi.io --ignoreDuplicateBuildFailure
curl -X POST https://ligththouse.cardanoapi.io/api/metrics/build-reports \
-d "@./lighthouseci/$(ls ./.lighthouseci |grep 'lhr.*\.json' | head -n 1)" \
-H "commit-hash: $(git rev-parse HEAD)" \
-H "secret-token: ${{ secrets.METRICS_SERVER_SECRET_TOKEN }}" \
-H 'Content-Type: application/json' || echo "Metric Upload error ignored ..."
127 changes: 101 additions & 26 deletions .github/workflows/test_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Backend Test
on:
push:
paths:
- .github/workflows/test_backend.yml
- .github/workflows/test_backend.yml
# - govtool/backend
# - tests/govtool-backend

schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
deployment:
Expand All @@ -21,29 +21,104 @@ on:
- "govtool-sanchonet.cardanoapi.io/api"

jobs:
build:
backend-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11.4
cache: 'pip'

- name: Run Backend Test
working-directory: tests/govtool-backend
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pytest -v --github-report
env:
BASE_URL: https://${{inputs.deployment || 'staging.govtool.byron.network/api' }}
METRICS_URL: https://metrics.cardanoapi.io
METRICS_API_SECRET: "${{ secrets.METRICS_SERVER_SECRET_TOKEN }}"

# - uses: schemathesis/action@v1
# with:
# schema: "http://localhost:8080/swagger.json"
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11.4
cache: "pip"

- name: Run Backend Test
working-directory: tests/govtool-backend
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m pytest --alluredir allure-results
env:
BASE_URL: https://${{inputs.deployment || 'staging.govtool.byron.network/api' }}
METRICS_URL: https://metrics.cardanoapi.io
METRICS_API_SECRET: "${{ secrets.METRICS_SERVER_SECRET_TOKEN }}"

- name: Upload report
uses: actions/upload-artifact@v3
if: always()
with:
name: allure-results
path: tests/govtool-backend/allure-results

publish-report:
runs-on: ubuntu-latest
if: always()
needs: backend-tests
steps:
- uses: actions/checkout@v4
- name: Download results
uses: actions/download-artifact@v3
with:
name: allure-results
path: allure-results

- name: Get Allure history
uses: actions/checkout@v4
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
repository: ${{vars.GH_PAGES}}
token: ${{secrets.PERSONAL_TOKEN}}

- name: Register report
id: register-project
if: ${{success()}}
run: |
chmod +x ./register_report.sh
./register_report.sh
- if: steps.register-project.outputs.project_exists != 'true'
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.PERSONAL_TOKEN }}
repository-name: ${{vars.GH_PAGES}}
branch: gh-pages
folder: project

- name: Generate report details
id: report-details
run: |
chmod +x ./generate_report_details.sh
./generate_report_details.sh

- name: Build report
uses: simple-elf/allure-report-action@master
if: always()
id: allure-report
with:
allure_results: allure-results
gh_pages: gh-pages/${{env.REPORT_NAME}}
allure_report: allure-report
allure_history: allure-history
keep_reports: 2000
report_url: ${{steps.report-details.outputs.report_url}}
github_run_num: ${{steps.report-details.outputs.report_number}}

- name: Generate Latest Report
run: |
chmod +x ./generate_latest_report_redirect.sh
./generate_latest_report_redirect.sh ${{steps.report-details.outputs.report_number}}

- name: Deploy report to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.PERSONAL_TOKEN }}
repository-name: ${{vars.GH_PAGES}}
branch: gh-pages
folder: build
target-folder: ${{ env.REPORT_NAME }}

env:
REPORT_NAME: backend
GH_PAGES: ${{vars.GH_PAGES}}
132 changes: 132 additions & 0 deletions .github/workflows/test_integration_playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
name: Integration Test [Playwright]

on:
push:
paths:
- .github/workflows/test_integration_playwright.yml
workflow_run:
workflows: ["Build and deploy GovTool to TEST server"]
types: [completed]

jobs:
integration-tests:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'push' }}
defaults:
run:
working-directory: tests/govtool-frontend/playwright
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
cache-dependency-path: "./tests/govtool-frontend/playwright/package-lock.json"

- name: Install dependencies
run: npm ci

- name: Cache Playwright browsers
id: cache-playwright-browsers
uses: actions/cache@v3
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-browsers

- name: Install Playwright browsers if not cached
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
run: npx playwright install --with-deps

- name: Run tests
run: |
npm test

- name: Upload report
uses: actions/upload-artifact@v3
if: always()
with:
name: allure-results
path: tests/govtool-frontend/playwright/allure-results

env:
FRONTEND_URL: ${{vars.FRONTEND_URL}}
API_URL: ${{vars.API_URL}}
DOCS_URL: ${{ vars.DOCS_URL }}
FAUCET_API_URL: ${{ vars.FAUCET_API_URL }}
FAUCET_API_KEY: ${{secrets.FAUCET_API_KEY}}
KUBER_API_URL: ${{vars.KUBER_API_URL}}
KUBER_API_KEY: ${{secrets.KUBER_API_KEY}}
WORKERS: ${{vars.WORKERS}}

publish-report:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'push' }}
needs: integration-tests
steps:
- uses: actions/checkout@v4
- name: Download report
uses: actions/download-artifact@v3
with:
name: allure-results
path: allure-results

- name: Get Allure history
uses: actions/checkout@v4
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
repository: ${{vars.GH_PAGES}}
token: ${{ secrets.PERSONAL_TOKEN }}

- name: Register report
id: register-project
if: ${{success()}}
run: |
chmod +x ./register_report.sh
./register_report.sh
- if: steps.register-project.outputs.project_exists != 'true'
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.PERSONAL_TOKEN }}
repository-name: ${{vars.GH_PAGES}}
branch: gh-pages
folder: project

- name: Generate report details
id: report-details
run: |
chmod +x ./generate_report_details.sh
./generate_report_details.sh

- name: Build report
uses: simple-elf/allure-report-action@master
if: always()
id: allure-report
with:
allure_results: allure-results
gh_pages: gh-pages/${{env.REPORT_NAME}}
allure_report: allure-report
allure_history: allure-history
keep_reports: 2000
report_url: ${{steps.report-details.outputs.report_url}}
github_run_num: ${{steps.report-details.outputs.report_number}}

- name: Generate Latest Report
run: |
chmod +x ./generate_latest_report_redirect.sh
./generate_latest_report_redirect.sh ${{steps.report-details.outputs.report_number}}

- name: Deploy report to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.PERSONAL_TOKEN }}
repository-name: ${{vars.GH_PAGES}}
branch: gh-pages
folder: build
target-folder: ${{ env.REPORT_NAME }}

env:
REPORT_NAME: integration
GH_PAGES: ${{vars.GH_PAGES}}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,7 @@ infra/terraform/.terraform*
scripts/govtool/dev-postgres_db
scripts/govtool/dev-postgres_user
scripts/govtool/dev-postgres_password

# nodejs/yarn

node_modules
Loading
Loading