Skip to content

Commit

Permalink
Update download tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Dec 18, 2024
1 parent b837139 commit 3a8fecf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/actions/multi-runtime-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,21 @@ runs:
run: ${{env.TEST_COMMAND}} test:browsers
shell: bash

# Download spec tests with cache
- name: Restore spec tests cache
uses: actions/cache@master
with:
path: packages/ssz/spec-tests
key: spec-test-data-${{ hashFiles('packages/ssz/test/specTestVersioning.ts') }}

- name: Download spec tests
if: inputs.runtime != 'nodejs'
run: ${{env.TEST_COMMAND}} test/spec/downloadTests.ts
if: inputs.runtime == 'deno'
run: yarn download-spec-tests
working-directory: packages/ssz
shell: bash

- name: Download spec tests
if: inputs.runtime == 'bun'
run: bun run --bun test/spec/downloadTests.ts
working-directory: packages/ssz
shell: bash

Expand Down
2 changes: 1 addition & 1 deletion packages/ssz/test/specTestVersioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ import path from "node:path";

export const SPEC_TEST_REPO_URL = "https://github.com/ethereum/consensus-spec-tests";
export const SPEC_TEST_VERSION = "v1.4.0-beta.1";
export const SPEC_TEST_LOCATION = path.join(import.meta.dirname, "../spec-tests");
export const SPEC_TEST_LOCATION = path.join(__dirname, "../spec-tests");

0 comments on commit 3a8fecf

Please sign in to comment.