From c7c4696ef984873eb51449bb8426e3d009f9d7d7 Mon Sep 17 00:00:00 2001 From: Milen Radkov Date: Tue, 3 Mar 2026 00:29:42 +0200 Subject: [PATCH 1/2] wip: test workflow --- .github/workflows/test.yml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f346acb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,47 @@ +name: Test + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - 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/ && ./SimplicityHL.test.ts" From 304e54e272a6d9493e5e9695dc7209eba15e4d2d Mon Sep 17 00:00:00 2001 From: Milen Radkov Date: Tue, 3 Mar 2026 00:48:35 +0200 Subject: [PATCH 2/2] wip: tests --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f346acb..0f0f8ab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + submodules: recursive - uses: docker/setup-buildx-action@v3