Skip to content

Commit

Permalink
Fix/ci pass doc check (#363)
Browse files Browse the repository at this point in the history
* add failure condition test

* Add test for HandleHTTPError (#278)

* add test for HandleHTTPError

undelete

* more verbose http codes

* Update Dockerfile

Now using go 1.23! Tested this on dev, it works

* Update compose_dev.sh

Prints initial settings as defined in setup.yaml. Added for usability reasons - users keep getting confused about account balance and maximum allowable debt

* add failure condition test

* formatting and test standards

---------

Co-authored-by: Osnat Katz Moon <137817983+astrosnat@users.noreply.github.com>

* add failure condition test (#282)

* Creation of Market Price Projection API (#277)

* Moving test to appropriate location.

* Updating, including moving test location. Test not passing due to precision error but generally passing on the terminal up to 6 dits.

* market projection handler, not working.

* Update market projected probability.

* Safe uint conversion.

* Updating, adding noop change to push into pipeline.

* Update, test passing.

* Update, attempting to solve type converstion uint problem.

* Adding projected market layout.

* Update, still have react JSON parse error but layout added to buyshares.

* Market projection updates on buy shares side, upon button press.

* Update, change printf to print.

* Create SECURITY.md

* Adding Fees to Buying and Selling Bets (#287)

* Drafting out fees deduction functions and capability.

* Attempting working version of initialBetFee function.

* Draft adding fees.

* Update, adding tests.

* Adding working test for GetBetsForMarket

* Successful fee util test.

* Fees added on backend, tests passing.

* Updating such that user record submitted. However fee summing not working yet evidently.

* Working fees, at least initial fees.

* Updating test scenario passing, made more clear.

* Update Dockerfile

We need to switch to 3.0.14-1~deb12u2

* Removing logging.

* Adding fees, including communicating fees on front end.

* totalBetCount to userBetCount so as not to misconstrue meaning.

* Simplifying function, test passed.

* Simplifying naming.

* Updating new function name in test

* Changing test to got before want convention.

* Update marketid variable

* Add combined fee structure for more througough test.

* Reverting sale amount to 1 share.

* Reversing got want

---------

Co-authored-by: Osnat Katz Moon <137817983+astrosnat@users.noreply.github.com>

* Frontend fixes (#286)

* fix: fixed the market buttons not showing on mobile

* fix: removed trade button on closed market

---------

Co-authored-by: Patrick Delaney <patrick.del@gmail.com>

* Attempting toa ddress cors related security concern. (#298)

* Drafting out reporting stats.

* Add support for dependency injection to setup (#301)

* Make EconomicsConfig from component structs

Auto initialize config
Add support to inject config
Add support for testing the setup through test doubles
Use new fee for placing bets (EachBetFee)

* fix(ci): Doc check skip

* not

---------

Co-authored-by: Osnat Katz Moon <137817983+astrosnat@users.noreply.github.com>
Co-authored-by: Patrick Delaney <patrick.del@gmail.com>
Co-authored-by: Marko Kovač <124689071+markokovac16@users.noreply.github.com>
Co-authored-by: Arthur <25300182+ajlacey@users.noreply.github.com>
  • Loading branch information
5 people authored Oct 6, 2024
1 parent 0787c28 commit 5245057
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,26 @@ jobs:
startsWith(github.head_ref, 'feature/')
|| startsWith(github.head_ref, 'fix/')
|| startsWith(github.head_ref, 'refactor/')
|| startsWith(github.head_ref, 'doc/')
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: [ '1.23.x' ]
steps:
- uses: actions/checkout@v4
if: ${{ !startsWith(github.head_ref, 'doc/') }}
- name: Setup Go ${{ matrix.go-version }}
if: ${{ !startsWith(github.head_ref, 'doc/') }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Get Dependencies
if: ${{ !startsWith(github.head_ref, 'doc/') }}
working-directory: ./backend
run: |
go get .
- name: Run tests
if: ${{ !startsWith(github.head_ref, 'doc/') }}
working-directory: ./backend
run: go test ./...

0 comments on commit 5245057

Please sign in to comment.