Hi, everyone.
I encountered an error during workflow unit testing with Jest and TypeScript. I started a simple environment:
beforeAll(async () => {
env = await TestWorkflowEnvironment.createLocal();
})
On my local machine, everything works fine. However, when I run remote tests on GitHub (using GitHub Actions), I get the following error:
Cause:
21 UnexpectedError: Failed to start ephemeral server: error sending request for url (https://temporal.download/cli/default?arch=amd64&platform=linux&format=tar.gz&sdk-name=sdk-typescript&sdk-version=1.11.7)
Thanks in advance for any help!
UPD: here is my gh action setup for unit testing
unit-tests:
needs: build
runs-on: ubuntu-latest
container:
image: node:20-bullseye-slim
steps:
- uses: actions/checkout@v4
- name: Install deps
uses: ./.github/actions/build-deps
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: built-artifacts
path: dist
- run: yarn test