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

feat: upgrade to oa v4 #779

Merged
merged 28 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1cbfe4e
chore: upgrade oa dependencies to beta
yapyuyou Jun 3, 2024
5427b46
fix: import errors after bundler
yapyuyou Jun 3, 2024
04f2f76
feat: add v4 verification
yapyuyou Jun 6, 2024
f0b83cd
chore: add analytics for v4
yapyuyou Jun 7, 2024
38cc351
feat: add svg renderer
yapyuyou Jun 11, 2024
6e19f6c
fix: v4 obfuscation
yapyuyou Jun 11, 2024
38ddef5
fix: axios issue
yapyuyou Jun 13, 2024
79aa54e
fix: jest
yapyuyou Jun 13, 2024
fea7839
fix: build
yapyuyou Jun 13, 2024
dfaf083
fix: build again
yapyuyou Jun 13, 2024
160b2ec
test: integration
yapyuyou Jun 14, 2024
5e38027
test: increase timeouts
yapyuyou Jun 14, 2024
9be5011
test: decrease chrome instances
yapyuyou Jun 14, 2024
e58740b
test: use just one chrome instance
yapyuyou Jun 14, 2024
2b12650
test: set resource class to large
yapyuyou Jun 14, 2024
2109db4
chore: upgrade docker image
Jun 14, 2024
0519249
test: revert to 4 instances
yapyuyou Jun 14, 2024
eb33374
fix: ci
Jun 14, 2024
3bad2f2
fix: wf
Jun 14, 2024
729a2b6
Merge branches 'feat/upgrade-to-oa-v4' and 'feat/upgrade-to-oa-v4' of…
Jun 14, 2024
5b8956a
fix: integration
Jun 14, 2024
2a22ad3
test: use selector command option
yapyuyou Jun 15, 2024
b406b57
fix: network bug
yapyuyou Jun 15, 2024
ad65daf
chore: upgrade oa-verify
yapyuyou Jun 20, 2024
84afe91
chore: add tests
yapyuyou Jun 20, 2024
95ff14b
chore: replace remote svg
yapyuyou Jun 20, 2024
b4c488d
refactor: import types from the root
HJunyuan Jun 24, 2024
56fb3fe
refactor: revert order of imports to reduce line changes
HJunyuan Jun 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
32 changes: 18 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
version: 2.1
workflows:
version: 2
# uncomment to get build registry
# nightly:
# triggers:
# - schedule:
# cron: "0 0 * * *"
# filters:
# branches:
# only:
# - master
# jobs:
# - build_registry
# uncomment to get build registry
# nightly:
# triggers:
# - schedule:
# cron: "0 0 * * *"
# filters:
# branches:
# only:
# - master
# jobs:
# - build_registry
commit:
jobs:
- build
orbs:
browser-tools: circleci/browser-tools@1.4.8
jobs:
build_registry:
docker:
- image: "circleci/node:lts-browsers"
- image: "cimg/node:14.21.3-browsers"
steps:
- checkout
- run:
name: build registry
command: npm run build:registry
build:
resource_class: large
docker:
- image: "circleci/node:lts-browsers"
- image: "cimg/node:14.21.3-browsers"
steps:
- checkout
- browser-tools/install-browser-tools
- run:
name: install
command: npm ci
Expand Down
5 changes: 5 additions & 0 deletions _mocks_/node-process-stub.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
versions: {
node: "14.17.0",
},
};
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ module.exports = {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/_mocks_/fileMock.js",
"\\.(css|sass|scss)$": "<rootDir>/_mocks_/styleMock.js",
axios: "axios/dist/node/axios.cjs",
"node:process": "<rootDir>/_mocks_/node-process-stub",
},
testResultsProcessor: "jest-sonar-reporter",
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"],
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = withBundleAnalyzer({
INFURA_API_KEY: process.env.INFURA_API_KEY || "84842078b09946638c03157f83405213", // ethers package default api key, feel free to change
ALCHEMY_API_KEY: process.env.ALCHEMY_API_KEY || "FK1x9CdE8NStKjVt236D_LP7B6MMCFOs", // default key works on ropsten
TRUSTED_TLDS: process.env.TRUSTED_TLDS || "gov.sg,edu.sg",
GA4_TAG_ID: process.env.GA4_TAG_ID,
GA4_TAG_ID: process.env.GA4_TAG_ID || "G-JP12T2F01V",
},
// Variables passed to both server and client
publicRuntimeConfig: {
Expand Down
Loading