1291 Commits

Author SHA1 Message Date
Giacomo
c7d280eb3d Merge pull request #293 from 0xjei/refactor/setup
Optimize modularization of `setup` command
2023-01-29 16:52:43 +01:00
ctrlc03
200cf7d28e fix(github sybil): amended the code after PR review
Implemented changes to the code to reflect the PR review. In particular, error messages have been
amended to better reflect the error and guide users on how to solve them.
2023-01-29 16:48:46 +01:00
ctrlc03
aa3e732ba7 fix(auth): changed and condition to or for GitHub reputation checks
Changed the "and" condition to "or" so that the function will throw if either of the two conditions
are met.

fix #271
2023-01-29 16:48:46 +01:00
ctrlc03
def49908ed feat(auth): added a function to detect GitHub reputation based on simple heuristics
Added a function that checks whether a connected GitHub account follows at least 5 users and has at
least one public repository.

fix #271
2023-01-29 16:48:46 +01:00
Jeeiii
7e921fede8 docs: add missing example for dynamic threshold tolerance mechanism
re #167
2023-01-29 16:42:04 +01:00
Jeeiii
9e95e0c6a8 refactor: complete first-step core refactor of setup command 2023-01-29 16:42:04 +01:00
Jeeiii
3bda9520c5 refactor: optimized coordinator claim verification, ceremony data prompt and setup command bootstrap 2023-01-29 16:42:04 +01:00
ctrlc03
e9b336aeef fix(firebase unit): fixed redundant env variable check
Removed a redundant env variable check for the Firebase unit tests
2023-01-29 16:41:54 +01:00
ctrlc03
529e426aa7 test(firebase unit): implemented unit tests for the bespoke functions related to Firebase
Implemented unit tests for functions related to Firebase such as the ones that initialize a new app,
retrieve the Cloud Functions and the Firestore database.

fix #281
2023-01-29 16:41:54 +01:00
Giacomo
18404cea54 Merge pull request #298 from quadratic-funding/fix-indent
Fix a failure to publish npm
2023-01-29 16:41:26 +01:00
Daehyun Paik
b076a3be0d build(deps): bump dependencies to latest 2023-01-28 02:03:36 +01:00
Daehyun Paik
3a2fafaa3f ci: fix npm release failure due to git hooks 2023-01-27 23:28:01 +01:00
ctrlc03
280ca9880d test(setup tests): implemented e2e and unit tests around the Setup action
Implemented e2e and unit tests for the Setup action and its supporting helpers such as storage
functions. Additionally implemented mock utilities for tests.
Note: This is WIP.

fix #276
2023-01-27 18:37:58 +00:00
ctrlc03
7a268c27a9 Merge branch 'dev' of github.com:quadratic-funding/mpc-phase2-suite into tests/setup 2023-01-27 14:09:57 +00:00
Giacomo
22df620c0c Merge pull request #294 from gurrpi/ci-fix
ci: fix build failure of `npm-publish` job
2023-01-27 14:09:34 +01:00
Daehyun Paik
5da8191405 ci: fix build failure of npm-publish job 2023-01-27 13:15:46 +01:00
ctrlc03
62d3971a46 Merge pull request #284 from ctrlc03/tests/auth
test(auth): added first tests for authentication
2023-01-27 11:57:36 +00:00
ctrlc03
387008a181 fix(auth): removed unneeded test stub
Removed a test stub which is not needed for the actions package.
2023-01-27 11:52:50 +00:00
ctrlc03
5d16838e79 fix(auth tests): implemented changes after PR review
Implemented changes on Auth tests after PR review. This includes removing the export of unused
functions, and adding more thorough comments in the code.
2023-01-26 18:46:04 +00:00
ctrlc03
6bbe77bb60 fix(github sybil): amended the code after PR review
Implemented changes to the code to reflect the PR review. In particular, error messages have been
amended to better reflect the error and guide users on how to solve them.
2023-01-26 18:20:56 +00:00
ctrlc03
b0295d344c test(setup): continued with Setup tests
Continued working on implementing Setup tests
2023-01-26 18:11:37 +00:00
ctrlc03
a7443c14b5 test(unit-lib-core): implemented unit tests for core utilities
Implemented test cases for the core utilities functions of the actions package
2023-01-26 14:29:23 +00:00
ctrlc03
a1a5ddc9fe fix(firebase unit): fixed redundant env variable check
Removed a redundant env variable check for the Firebase unit tests
2023-01-26 11:50:53 +00:00
ctrlc03
a9ec1f3682 test(firebase unit): implemented unit tests for the bespoke functions related to Firebase
Implemented unit tests for functions related to Firebase such as the ones that initialize a new app,
retrieve the Cloud Functions and the Firestore database.

fix #281
2023-01-26 11:42:17 +00:00
ctrlc03
fd1207779f test(setup): implemented first tests for the setup action
Implemented various tests for functions and scenarios related to setting up a new ceremony

fix #278
2023-01-26 10:48:09 +00:00
ctrlc03
2b4889792a fix(auth tests): fixed test failing on CI
Removed specific error message for auth failure, due to different error message being returned by
Firebase locally vs on CI
2023-01-25 17:48:53 +00:00
ctrlc03
de11392853 test(auth): implemented test cases for authentication
Implemented authentication test cases, both with email and password as well as with GitHub's OAuth2.
The latter is commented out due to some issues with puppeteer and GitHub.

fix #281
2023-01-25 17:37:21 +00:00
Giacomo
bb8609e52c Merge pull request #292 from 0xjei/test/auth-mailpw
Switch from Github to email/pw authentication for testing
2023-01-25 16:55:00 +01:00
Jeeiii
40d0982ad7 refactor: switch from Github auth to email and password 2023-01-25 16:40:18 +01:00
ctrlc03
f78979d946 fix(auth): changed and condition to or for GitHub reputation checks
Changed the "and" condition to "or" so that the function will throw if either of the two conditions
are met.

fix #271
2023-01-25 14:51:08 +00:00
ctrlc03
aae0f68aa9 feat(auth): added a function to detect GitHub reputation based on simple heuristics
Added a function that checks whether a connected GitHub account follows at least 5 users and has at
least one public repository.

fix #271
2023-01-25 14:46:34 +00:00
Daehyun Paik
6b29091d8f chore: run Commitizen on git commit command 2023-01-24 22:04:13 +01:00
Daehyun Paik
4550d85f3d chore: abort git commit command when commit message doesn't meet the conventional commit format
Automate commit message check using
`commitlint`(https://github.com/conventional-changelog/commitlint)
2023-01-24 22:04:13 +01:00
Jeeiii
71a6542922 ci: add missing environments for test prod action 2023-01-24 22:03:55 +01:00
Giacomo
0c48425ade Merge pull request #290 from gurrpi/badge
docs: add CI status badge to README.md
2023-01-24 21:41:08 +01:00
Daehyun Paik
b39555b28d docs: add CI status badge to README.md 2023-01-24 19:44:00 +01:00
Jeeiii
ca2624f049 chore(release): publish 0.1.0 v0.1.0 2023-01-24 12:48:58 +01:00
Giacomo
8d0a8672aa Merge pull request #283 from gurrpi/rp
ci: add release workflow
2023-01-24 11:49:40 +01:00
Daehyun Paik
a668f43511 ci: add release workflow 2023-01-23 23:24:36 +01:00
Giacomo
ecd48fdaa6 Merge pull request #270 from 0xjei/refactor/auth
Optimized modularization of `auth` command
2023-01-23 20:25:18 +01:00
Jeeiii
bc4a57b5ad Merge branch 'refactor/auth' of https://github.com/0xjei/mpc-phase2-suite into refactor/auth 2023-01-23 19:09:12 +01:00
Jeeiii
44e6e6c39c chore: lint and fix import 2023-01-23 19:08:42 +01:00
Jeeiii
2e98d145ff test: bootstrap unit test for firebase core auth helpers 2023-01-23 19:07:59 +01:00
Giacomo
5ecb073e1f Merge branch 'dev' into refactor/auth 2023-01-23 19:06:04 +01:00
Daehyun Paik
e0ecdfe074 chore(changelog): add CHANGELOG 2023-01-23 16:32:36 +01:00
Jeeiii
e122c19af8 fix: wrong usage of secrets in development test pipeline 2023-01-23 16:15:58 +01:00
Jeeiii
ae94bcce0a ci: update heap size limit for nodejs to avoid build errors 2023-01-23 16:03:14 +01:00
Jeeiii
6b67294828 fix: missing conditional for alternative workflow when session is maintained with Github 2023-01-23 15:49:18 +01:00
Jeeiii
1ccf4d1d68 refactor: separation between dev and prod envs; improved utilities; relocate e2e tests 2023-01-20 15:49:24 +01:00
Jeeiii
7ef59e7199 Merge branch 'refactor/auth' of https://github.com/0xjei/mpc-phase2-suite into refactor/auth 2023-01-19 14:54:00 +01:00