diff --git a/.github/workflows/ts_test.yaml b/.github/workflows/ts_test.yaml index ba7334de9..7f84ef29d 100644 --- a/.github/workflows/ts_test.yaml +++ b/.github/workflows/ts_test.yaml @@ -27,6 +27,20 @@ jobs: - name: Install Dependencies run: yarn install + # We don't store circuit and smart contract compilation artefacts in the repo, + # but typecheck fails on import without them so we just create fake files here + - name: Create fake circuit compilation artefacts + working-directory: . + run: | + mkdir -p target + touch target/ethereum_history_api.json + + - name: Create fake smart contract build artefacts + working-directory: . + run: | + mkdir -p ethereum_history_api/contracts/out/UltraVerifier.sol + echo '{ "abi": [], "bytecode": { "object": "" } }' > ethereum_history_api/contracts/out/UltraVerifier.sol/UltraVerifier.json + - name: Run TypeScript Build run: yarn build:all