-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64b7734
commit 6b32b64
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Tests Deno | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
test: | ||
name: Tests Deno | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
deno: [2] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: corepack enable | ||
- uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: ${{matrix.deno}} | ||
- name: Bootstrap | ||
run: deno install | ||
- name: Generate | ||
run: cd packages/as-sha256 && deno run -R -W -I scripts/codegen.ts | ||
- name: Unit Tests | ||
run: JS_RUNTIME=deno deno task --recursive --filter '' test:unit | ||
|
||
# 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 | ||
run: yarn download-spec-tests | ||
working-directory: packages/ssz | ||
|
||
# Run them in different steps to quickly identifying which command failed | ||
# Otherwise just doing `yarn test:spec` you can't tell which specific suite failed | ||
# many of the suites have identical names for minimal and mainnet | ||
- name: Spec tests general | ||
run: deno task -R -W test:spec-generic | ||
working-directory: packages/ssz | ||
- name: Spec tests phase0-minimal | ||
run: LODESTAR_FORK=phase0 deno task -R -W test:spec-static-minimal | ||
working-directory: packages/ssz | ||
- name: Spec tests phase0-mainnet | ||
run: LODESTAR_FORK=phase0 deno task -R -W test:spec-static-mainnet | ||
working-directory: packages/ssz | ||
- name: Spec tests altair-minimal | ||
run: LODESTAR_FORK=altair deno task -R -W test:spec-static-minimal | ||
working-directory: packages/ssz | ||
- name: Spec tests altair-mainnet | ||
run: LODESTAR_FORK=altair deno task -R -W test:spec-static-mainnet | ||
working-directory: packages/ssz | ||
- name: Spec tests bellatrix-minimal | ||
run: LODESTAR_FORK=bellatrix deno task -R -W test:spec-static-minimal | ||
working-directory: packages/ssz | ||
- name: Spec tests bellatrix-mainnet | ||
run: LODESTAR_FORK=bellatrix deno task -R -W test:spec-static-mainnet | ||
working-directory: packages/ssz |
This file contains 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