Skip to content

Commit

Permalink
Fix formatting of test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Oct 3, 2023
1 parent d9e6f1a commit ff9aa6a
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ on:
branches: [unstable, stable]
pull_request:
workflow_dispatch:

env:
GETH_DOCKER_IMAGE: ethereum/client-go:v1.11.6
NETHERMIND_DOCKER_IMAGE: nethermind/nethermind:1.18.0

jobs:
build:
name: Build
Expand Down Expand Up @@ -53,9 +53,9 @@ jobs:
if: steps.cache-build-restore.outputs.cache-hit == 'true'
run: yarn build
- name: Check Build
run: yarn check-build
run: yarn check-build
- name: Test root binary exists
run: ./lodestar --version
run: ./lodestar --version
- name: Reject yarn.lock changes
run: .github/workflows/scripts/reject_yarn_lock_changes.sh
# Run only on forks
Expand All @@ -69,17 +69,17 @@ jobs:
packages/*/node_modules
lib/
packages/*/lib
packages/*/.git-data.json
packages/*/.git-data.json
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }}

lint:
name: Lint
needs: build
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
node: [20]
node: [20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -96,28 +96,28 @@ jobs:
packages/*/node_modules
lib/
packages/*/lib
packages/*/.git-data.json
packages/*/.git-data.json
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }}
fail-on-cache-miss: true
- name: Assert yarn prints no warnings
run: scripts/assert_no_yarn_warnings.sh
run: scripts/assert_no_yarn_warnings.sh
- name: Lint Code
run: yarn lint
run: yarn lint
- name: Lint Grafana dashboards
run: scripts/validate-grafana-dashboards.sh
run: scripts/validate-grafana-dashboards.sh
- name: Assert ESM module exports
run: node scripts/assert_exports.mjs
- name: Assert eslintrc rules sorted
run: scripts/assert_eslintrc_sorted.mjs

type-checks:
type-checks:
name: Type Checks
needs: build
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
node: [20]
node: [20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -134,16 +134,16 @@ jobs:
packages/*/node_modules
lib/
packages/*/lib
packages/*/.git-data.json
packages/*/.git-data.json
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }}
fail-on-cache-miss: true

- name: Check Types
run: yarn check-types

- name: README check
run: yarn check-readme

unit-tests:
name: Unit Tests
needs: type-checks
Expand All @@ -168,7 +168,7 @@ jobs:
packages/*/node_modules
lib/
packages/*/lib
packages/*/.git-data.json
packages/*/.git-data.json
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }}
fail-on-cache-miss: true

Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
with:
node-version: ${{matrix.node}}
check-latest: true
cache: yarn
cache: yarn
- name: Restore build cache
id: cache-primes-restore
uses: actions/cache/restore@v3
Expand All @@ -209,7 +209,7 @@ jobs:
packages/*/node_modules
lib/
packages/*/lib
packages/*/.git-data.json
packages/*/.git-data.json
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }}
fail-on-cache-miss: true

Expand All @@ -230,7 +230,7 @@ jobs:
with:
name: debug-e2e-test-logs-node-${{matrix.node}}
path: test-logs/e2e-test-env

browser-tests:
name: Browser Tests
runs-on: buildjet-4vcpu-ubuntu-2204
Expand All @@ -246,7 +246,7 @@ jobs:
with:
node-version: ${{matrix.node}}
check-latest: true
cache: yarn
cache: yarn
- name: Restore build cache
id: cache-primes-restore
uses: actions/cache/restore@v3
Expand All @@ -256,7 +256,7 @@ jobs:
packages/*/node_modules
lib/
packages/*/lib
packages/*/.git-data.json
packages/*/.git-data.json
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }}
fail-on-cache-miss: true

Expand Down Expand Up @@ -290,18 +290,18 @@ jobs:
packages/*/node_modules
lib/
packages/*/lib
packages/*/.git-data.json
packages/*/.git-data.json
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }}
fail-on-cache-miss: true

# Download spec tests with cache
- name: Restore spec tests cache
uses: actions/cache@master
with:
path: packages/beacon-node/spec-tests
key: spec-test-data-${{ hashFiles('packages/beacon-node/test/spec/specTestVersioning.ts') }}
- name: Download spec tests
run: yarn download-spec-tests
- name: Download spec tests
run: yarn download-spec-tests
working-directory: packages/beacon-node
# 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
Expand Down

0 comments on commit ff9aa6a

Please sign in to comment.