|
|
|
@ -26,7 +26,7 @@ env: |
|
|
|
|
jobs: |
|
|
|
|
build-and-cache: |
|
|
|
|
name: Build and Cache deps |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
- uses: erlef/setup-beam@v1 |
|
|
|
@ -47,7 +47,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps- |
|
|
|
|
|
|
|
|
@ -91,7 +91,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
credo: |
|
|
|
|
name: Credo |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
@ -107,7 +107,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -115,7 +115,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
check_formatted: |
|
|
|
|
name: Code formatting checks |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
@ -131,14 +131,14 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
|
- run: mix format --check-formatted |
|
|
|
|
dialyzer: |
|
|
|
|
name: Dialyzer static analysis |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
@ -154,7 +154,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -163,7 +163,7 @@ jobs: |
|
|
|
|
id: dialyzer-cache |
|
|
|
|
with: |
|
|
|
|
path: priv/plts |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-dialyzer-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-dialyzer-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-dialyzer-" |
|
|
|
|
|
|
|
|
@ -178,7 +178,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
gettext: |
|
|
|
|
name: Missing translation keys check |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
@ -194,7 +194,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -204,7 +204,7 @@ jobs: |
|
|
|
|
working-directory: "apps/block_scout_web" |
|
|
|
|
sobelow: |
|
|
|
|
name: Sobelow security analysis |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
@ -220,7 +220,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -233,7 +233,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
cspell: |
|
|
|
|
name: Check spelling |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
@ -249,7 +249,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -281,7 +281,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
eslint: |
|
|
|
|
name: ESLint |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
@ -297,7 +297,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -327,7 +327,7 @@ jobs: |
|
|
|
|
working-directory: apps/block_scout_web/assets |
|
|
|
|
jest: |
|
|
|
|
name: JS Tests |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
@ -343,7 +343,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -365,7 +365,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
test_nethermind_mox_ethereum_jsonrpc: |
|
|
|
|
name: EthereumJSONRPC Tests |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
services: |
|
|
|
|
postgres: |
|
|
|
@ -400,7 +400,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -419,7 +419,7 @@ jobs: |
|
|
|
|
ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Mox" |
|
|
|
|
test_nethermind_mox_explorer: |
|
|
|
|
name: Explorer Tests |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
services: |
|
|
|
|
postgres: |
|
|
|
@ -454,7 +454,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -484,7 +484,7 @@ jobs: |
|
|
|
|
ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Mox" |
|
|
|
|
test_nethermind_mox_indexer: |
|
|
|
|
name: Indexer Tests |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
services: |
|
|
|
|
postgres: |
|
|
|
@ -519,7 +519,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
@ -543,7 +543,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
test_nethermind_mox_block_scout_web: |
|
|
|
|
name: Blockscout Web Tests |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
needs: build-and-cache |
|
|
|
|
services: |
|
|
|
|
redis_db: |
|
|
|
@ -583,7 +583,7 @@ jobs: |
|
|
|
|
path: | |
|
|
|
|
deps |
|
|
|
|
_build |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_21-${{ hashFiles('mix.lock') }} |
|
|
|
|
key: ${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-mixlockhash_20-${{ hashFiles('mix.lock') }} |
|
|
|
|
restore-keys: | |
|
|
|
|
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-" |
|
|
|
|
|
|
|
|
|