test: monitor balance in bigint #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: docker/setup-buildx-action@v3 | |
| - name: Build WASM image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| target: wasm | |
| tags: hackbg/fadroma-simplicity:build | |
| load: true | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Compile WASM (debug) | |
| run: | | |
| docker run --rm \ | |
| -v "$PWD:/build:rw" \ | |
| hackbg/fadroma-simplicity:build \ | |
| "just build-wasm-debug" | |
| - name: Build test image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| target: test | |
| tags: hackbg/fadroma-simplicity:test | |
| load: true | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Run tests | |
| run: | | |
| docker run --rm \ | |
| -v "$PWD:/fadroma/platform/SimplicityHL:rw" \ | |
| hackbg/fadroma-simplicity:test \ | |
| "cd platform/SimplicityHL/ && src/test.ts" |