Skip to content

Commit

Permalink
ci: run unit tests (#3)
Browse files Browse the repository at this point in the history
* ci: run unit tests

* ci: rename workflow
  • Loading branch information
hugocaillard authored Feb 5, 2025
1 parent 976c69b commit 57e830b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/test-contract.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test contract

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i -f
- run: npm run test
4 changes: 3 additions & 1 deletion Clarinet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ contract_id = 'SP3R4F6C1J3JQWWCVZ3S7FRRYPMYG6ZW6RZK31FXY.pyth-storage-v3'
[[project.requirements]]
contract_id = 'SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token'

[[project.requirements]]
contract_id = 'SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token'

[contracts.get-price]
path = 'contracts/get-price.clar'
clarity_version = 3
epoch = 3.1


[repl.remote_data]
enabled = true
api_url = "https://api.hiro.so"
Expand Down

0 comments on commit 57e830b

Please sign in to comment.