Skip to content

Commit

Permalink
Add github workflows (#125)
Browse files Browse the repository at this point in the history
* Add GitHub workflows (#119)

* fix broken tests

* general tidying

* add github workflow

* correct extension

* correct name

* format

* tidy

* Remove `refund` action for testnet competition (#120)

* remove refund all action for testnet

* fix script

* Fix workflow (#121)

* run on PR

* fix tests

* format

* Mp 2736 improve estimates (#122)

* use wasms

* fmt

* tidy

* add secret manager

* config update

* remove wasm files

* Update mars endpoints.

* improve logging

* fix tests

* fmt

---------

Co-authored-by: piobab <[email protected]>

* update secret manager (#123)

* Update contract addresses (#124)

* update secret manager

* update addresses

* fmt

---------

Co-authored-by: piobab <[email protected]>
  • Loading branch information
markonmars and piobab authored Dec 12, 2024
1 parent f3f9119 commit b66609d
Show file tree
Hide file tree
Showing 27 changed files with 1,067 additions and 1,047 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Scripts

on:
push:
branches:
- main
- perps
pull_request:

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required for coverage comparison

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn' # Specify yarn for caching

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Run Tests
run: yarn test

- name: Check Coverage
run: yarn test:coverage

- name: Check Formatting
run: yarn format:check
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"scripts": {
"test:integration": "yarn build && node build/test/redbank/integration/liquidationTest",
"test:rover-integration": "yarn build && node build/test/rover/integration/liquidationTest",
"clean": "rimraf build",
"build": "tsc",
"start": "yarn build && node build/src/main",
"test": "jest",
"test": "yarn clean && yarn build && jest",
"test:coverage": "yarn clean && yarn build && jest --coverage",
"lint": "yarn format-check && eslint . && yarn build",
"format": "prettier --write .",
"format-check": "prettier --ignore-path .gitignore --check ."
"format:check": "prettier --ignore-path .gitignore --check ."
},
"dependencies": {
"@aws-sdk/client-secrets-manager": "^3.188.0",
Expand Down Expand Up @@ -40,7 +42,9 @@
"requests": "^0.3.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.1",
"uuid": "^9.0.0"
"uuid": "^9.0.0",
"mars-rover-health-computer-node": "2.2.0",
"mars-liquidation-node": "1.0.0"
},
"devDependencies": {
"@babel/core": "^7.21.0",
Expand Down
Loading

0 comments on commit b66609d

Please sign in to comment.