From eafb4ae6a15ca6e3aab63fb9573409d21b12c439 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Tue, 28 Jul 2020 21:08:25 +0300 Subject: [PATCH] coveralls --- .github/workflows/config.yml | 769 +++++++++++----------------------- CHANGELOG.md | 1 + apps/block_scout_web/mix.exs | 2 +- apps/ethereum_jsonrpc/mix.exs | 4 +- apps/explorer/mix.exs | 2 +- apps/indexer/mix.exs | 2 +- mix.exs | 2 +- mix.lock | 12 +- 8 files changed, 254 insertions(+), 540 deletions(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index b31d3e2c54..71438dd7aa 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -8,6 +8,9 @@ on: branches: - master +env: + MIX_ENV: test + jobs: build: runs-on: ubuntu-latest @@ -19,7 +22,11 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock + - name: Restore cache mix.exs uses: actions/cache@v2 with: path: ~/ @@ -27,32 +34,28 @@ jobs: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- - run: mix deps.get - - name: Cache node modules + - name: Restore cache node modules uses: actions/cache@v2 with: path: ~/.npm key: | v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - 'v7-npm-install-{{ .Branch }}' + v7-npm-install-{{ .Branch }} v7-npm-install - restore-keys: v7-npm-install- - run: npm install working-directory: apps/explorer - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules - key: >- - v3-npm-install-{{ .Branch }}-{{ checksum - "apps/explorer/package-lock.json" }} - - name: Cache dependencies + key: v3-npm-install-{{ .Branch }}-{{ checksum "apps/explorer/package-lock.json" }} + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules - key: 'v3-npm-install-{{ .Branch }}' - - name: Cache dependencies + key: v3-npm-install-{{ .Branch }} + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules @@ -61,19 +64,17 @@ jobs: working-directory: apps/block_scout_web/assets - run: npm rebuild node-sass working-directory: apps/block_scout_web/assets - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules - key: >- - v7-npm-install-{{ .Branch }}-{{ checksum - "apps/block_scout_web/assets/package-lock.json" }} - - name: Cache dependencies + key: v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules - key: 'v7-npm-install-{{ .Branch }}' - - name: Cache dependencies + key: v7-npm-install-{{ .Branch }} + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules @@ -81,33 +82,27 @@ jobs: - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | deps _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies + key: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} + - name: Save cache dependencies uses: actions/cache@v2 with: path: | deps _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies + key: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} + - name: Save cache dependencies uses: actions/cache@v2 with: path: | deps _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }} + key: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - name: Build assets run: node node_modules/webpack/bin/webpack.js --mode development working-directory: "apps/block_scout_web/assets" @@ -121,51 +116,11 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs - uses: actions/cache@v2 - with: - path: ~/ - key: | - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- - run: mix deps.get - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }} - - run: | - mix local.hex --force - mix credo - env: - MIX_ENV: test + - run: mix credo check_formatted: runs-on: ubuntu-latest steps: @@ -176,7 +131,11 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock + - name: Restore cache mix.exs uses: actions/cache@v2 with: path: ~/ @@ -184,41 +143,32 @@ jobs: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- - run: mix deps.get - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies + deps + _build + key: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} + - name: Save cache dependencies uses: actions/cache@v2 with: path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies + deps + _build + key: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} + - name: Save cache dependencies uses: actions/cache@v2 with: path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }} + deps + _build + key: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - run: mix format --check-formatted - env: - MIX_ENV: test dialyzer: runs-on: ubuntu-latest steps: @@ -229,56 +179,23 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs - uses: actions/cache@v2 - with: - path: ~/ - key: | - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- - run: mix deps.get - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }} - - run: | + - name: Unpack PLT cache + run: | mkdir -p _build/test cp plts/dialyxir*.plt _build/test/ || true mkdir -p ~/.mix cp plts/dialyxir*.plt ~/.mix/ || true - mix dialyzer --plt + - run: mix dialyzer --plt + - name: Pack PLT cache + run: | mkdir -p plts cp _build/test/dialyxir*.plt plts/ cp ~/.mix/dialyxir*.plt plts/ - mix dialyzer --halt-exit-status + - run: mix dialyzer --halt-exit-status gettext: runs-on: ubuntu-latest steps: @@ -289,7 +206,11 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock + - name: Restore cache mix.exs uses: actions/cache@v2 with: path: ~/ @@ -297,12 +218,11 @@ jobs: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- - run: mix deps.get - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | @@ -311,7 +231,7 @@ jobs: key: >- v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | @@ -320,7 +240,7 @@ jobs: key: >- v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | @@ -333,8 +253,6 @@ jobs: mix gettext.extract --merge | tee stdout.txt ! grep "Wrote " stdout.txt working-directory: "apps/block_scout_web" - env: - MIX_ENV: test sobelow: runs-on: ubuntu-latest steps: @@ -345,56 +263,17 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs - uses: actions/cache@v2 - with: - path: ~/ - key: | - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- - run: mix deps.get + - run: mix deps.compile - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }} - name: Scan explorer for vulnerabilities run: mix sobelow --config working-directory: "apps/explorer" - env: - MIX_ENV: test - name: Scan block_scout_web for vulnerabilities run: mix sobelow --config working-directory: "apps/block_scout_web" - env: - MIX_ENV: test eslint: runs-on: ubuntu-latest steps: @@ -405,7 +284,11 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock + - name: Restore cache mix.exs uses: actions/cache@v2 with: path: ~/ @@ -413,9 +296,8 @@ jobs: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- - run: mix deps.get - - name: Cache node modules + - name: Restore cache node modules uses: actions/cache@v2 with: path: ~/.npm @@ -423,22 +305,21 @@ jobs: v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} 'v7-npm-install-{{ .Branch }}' v7-npm-install - restore-keys: v7-npm-install- - run: npm install working-directory: apps/explorer - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: >- v3-npm-install-{{ .Branch }}-{{ checksum "apps/explorer/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: 'v3-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules @@ -447,19 +328,19 @@ jobs: working-directory: apps/block_scout_web/assets - run: npm rebuild node-sass working-directory: apps/block_scout_web/assets - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: >- v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: 'v7-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules @@ -467,7 +348,7 @@ jobs: - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | @@ -476,7 +357,7 @@ jobs: key: >- v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | @@ -485,7 +366,7 @@ jobs: key: >- v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | @@ -509,7 +390,11 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock + - name: Restore cache mix.exs uses: actions/cache@v2 with: path: ~/ @@ -517,9 +402,8 @@ jobs: v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- - run: mix deps.get - - name: Cache node modules + - name: Restore cache node modules uses: actions/cache@v2 with: path: ~/.npm @@ -527,22 +411,21 @@ jobs: v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} 'v7-npm-install-{{ .Branch }}' v7-npm-install - restore-keys: v7-npm-install- - run: npm install working-directory: apps/explorer - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: >- v3-npm-install-{{ .Branch }}-{{ checksum "apps/explorer/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: 'v3-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules @@ -551,19 +434,19 @@ jobs: working-directory: apps/block_scout_web/assets - run: npm rebuild node-sass working-directory: apps/block_scout_web/assets - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: >- v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: 'v7-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules @@ -571,7 +454,7 @@ jobs: - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | @@ -580,7 +463,7 @@ jobs: key: >- v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | @@ -589,7 +472,7 @@ jobs: key: >- v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: | @@ -632,40 +515,34 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs - uses: actions/cache@v2 - with: - path: ~/ - key: | - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock - run: mix deps.get - - name: Cache node modules + - name: Restore cache node modules uses: actions/cache@v2 with: path: ~/.npm key: | v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - 'v7-npm-install-{{ .Branch }}' + v7-npm-install-{{ .Branch }} v7-npm-install - restore-keys: v7-npm-install- - run: npm install working-directory: apps/explorer - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: >- v3-npm-install-{{ .Branch }}-{{ checksum "apps/explorer/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: 'v3-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules @@ -674,19 +551,19 @@ jobs: working-directory: apps/block_scout_web/assets - run: npm rebuild node-sass working-directory: apps/block_scout_web/assets - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: >- v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: 'v7-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules @@ -694,33 +571,6 @@ jobs: - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }} - name: Build assets run: node node_modules/webpack/bin/webpack.js --mode development working-directory: "apps/block_scout_web/assets" @@ -730,7 +580,6 @@ jobs: cd apps/ethereum_jsonrpc mix test --no-start --exclude no_parity env: - MIX_ENV: test # match POSTGRES_PASSWORD for postgres image below PGPASSWORD: postgres # match POSTGRES_USER for postgres image below @@ -766,40 +615,34 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs - uses: actions/cache@v2 - with: - path: ~/ - key: | - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock - run: mix deps.get - - name: Cache node modules + - name: Restore cache node modules uses: actions/cache@v2 with: path: ~/.npm key: | v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - 'v7-npm-install-{{ .Branch }}' + v7-npm-install-{{ .Branch }} v7-npm-install - restore-keys: v7-npm-install- - run: npm install working-directory: apps/explorer - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: >- v3-npm-install-{{ .Branch }}-{{ checksum "apps/explorer/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: 'v3-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules @@ -808,19 +651,19 @@ jobs: working-directory: apps/block_scout_web/assets - run: npm rebuild node-sass working-directory: apps/block_scout_web/assets - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: >- v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: 'v7-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules @@ -828,33 +671,6 @@ jobs: - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }} - name: Build assets run: node node_modules/webpack/bin/webpack.js --mode development working-directory: "apps/block_scout_web/assets" @@ -866,7 +682,6 @@ jobs: cd apps/explorer mix test --no-start --exclude no_parity env: - MIX_ENV: test # match POSTGRES_PASSWORD for postgres image below PGPASSWORD: postgres # match POSTGRES_USER for postgres image below @@ -902,40 +717,34 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs - uses: actions/cache@v2 - with: - path: ~/ - key: | - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock - run: mix deps.get - - name: Cache node modules + - name: Restore cache node modules uses: actions/cache@v2 with: path: ~/.npm key: | v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - 'v7-npm-install-{{ .Branch }}' + v7-npm-install-{{ .Branch }} v7-npm-install - restore-keys: v7-npm-install- - run: npm install working-directory: apps/explorer - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: >- v3-npm-install-{{ .Branch }}-{{ checksum "apps/explorer/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: 'v3-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules @@ -944,19 +753,19 @@ jobs: working-directory: apps/block_scout_web/assets - run: npm rebuild node-sass working-directory: apps/block_scout_web/assets - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: >- v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules - key: 'v7-npm-install-{{ .Branch }}' - - name: Cache dependencies + key: v7-npm-install-{{ .Branch }} + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules @@ -964,33 +773,6 @@ jobs: - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }} - name: Build assets run: node node_modules/webpack/bin/webpack.js --mode development working-directory: "apps/block_scout_web/assets" @@ -1002,7 +784,6 @@ jobs: cd apps/indexer mix test --no-start --exclude no_parity env: - MIX_ENV: test # match POSTGRES_PASSWORD for postgres image below PGPASSWORD: postgres # match POSTGRES_USER for postgres image below @@ -1038,17 +819,12 @@ jobs: elixir-version: '1.10.3' - run: mix local.hex --force - run: mix local.rebar --force - - name: Cache mix.exs - uses: actions/cache@v2 - with: - path: ~/ - key: | - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - restore-keys: v8-mix-compile- + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock - run: mix deps.get - - name: Cache node modules + - name: Restore cache node modules uses: actions/cache@v2 with: path: ~/.npm @@ -1056,22 +832,21 @@ jobs: v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} 'v7-npm-install-{{ .Branch }}' v7-npm-install - restore-keys: v7-npm-install- - run: npm install working-directory: apps/explorer - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: >- v3-npm-install-{{ .Branch }}-{{ checksum "apps/explorer/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules key: 'v3-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/explorer/node_modules @@ -1080,19 +855,19 @@ jobs: working-directory: apps/block_scout_web/assets - run: npm rebuild node-sass working-directory: apps/block_scout_web/assets - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: >- v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules key: 'v7-npm-install-{{ .Branch }}' - - name: Cache dependencies + - name: Save cache dependencies uses: actions/cache@v2 with: path: apps/block_scout_web/assets/node_modules @@ -1100,190 +875,128 @@ jobs: - run: mix compile - run: make working-directory: "deps/libsecp256k1" - - name: Cache dependencies + - name: Build assets + run: node node_modules/webpack/bin/webpack.js --mode development + working-directory: "apps/block_scout_web/assets" + - run: ./bin/install_chrome_headless.sh + - name: mix test --exclude no_parity + run: | + mix ecto.create --quiet + mix ecto.migrate + cd apps/block_scout_web + mix test --no-start --exclude no_parity + env: + # match POSTGRES_PASSWORD for postgres image below + PGPASSWORD: postgres + # match POSTGRES_USER for postgres image below + PGUSER: postgres + ETHEREUM_JSONRPC_CASE: "EthereumJSONRPC.Case.Parity.Mox" + ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Mox" + coveralls: + runs-on: ubuntu-latest + services: + postgres: + image: postgres + env: + # Match apps/explorer/config/test.exs config :explorer, Explorer.Repo, database + POSTGRES_DB: explorer_test + # match PGPASSWORD for elixir image above + POSTGRES_PASSWORD: postgres + # match PGUSER for elixir image above + POSTGRES_USER: postgres + # Set health checks to wait until postgres has started + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps tcp port 5432 on service container to the host + - 5432:5432 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-elixir@v1 + with: + otp-version: '22.2' + elixir-version: '1.10.3' + - run: mix local.hex --force + - run: mix local.rebar --force + - name: "ELIXIR_VERSION.lock" + run: echo "${ELIXIR_VERSION}" > ELIXIR_VERSION.lock + - name: "OTP_VERSION.lock" + run: echo "${OTP_VERSION}" > OTP_VERSION.lock + - run: mix deps.get + - name: Restore cache node modules uses: actions/cache@v2 with: - path: | - deps - _build - key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - - name: Cache dependencies + path: ~/.npm + key: | + v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} + v7-npm-install-{{ .Branch }} + v7-npm-install + - run: npm install + working-directory: apps/explorer + - name: Save cache dependencies uses: actions/cache@v2 with: - path: | - deps - _build + path: apps/explorer/node_modules key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - - name: Cache dependencies + v3-npm-install-{{ .Branch }}-{{ checksum + "apps/explorer/package-lock.json" }} + - name: Save cache dependencies uses: actions/cache@v2 with: - path: | - deps - _build + path: apps/explorer/node_modules + key: 'v3-npm-install-{{ .Branch }}' + - name: Save cache dependencies + uses: actions/cache@v2 + with: + path: apps/explorer/node_modules + key: v3-npm-install + - run: npm install + working-directory: apps/block_scout_web/assets + - run: npm rebuild node-sass + working-directory: apps/block_scout_web/assets + - name: Save cache dependencies + uses: actions/cache@v2 + with: + path: apps/block_scout_web/assets/node_modules key: >- - v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - "ELIXIR_VERSION.lock" }} + v7-npm-install-{{ .Branch }}-{{ checksum + "apps/block_scout_web/assets/package-lock.json" }} + - name: Save cache dependencies + uses: actions/cache@v2 + with: + path: apps/block_scout_web/assets/node_modules + key: v7-npm-install-{{ .Branch }} + - name: Save cache dependencies + uses: actions/cache@v2 + with: + path: apps/block_scout_web/assets/node_modules + key: v7-npm-install + - run: mix compile + - run: make + working-directory: "deps/libsecp256k1" - name: Build assets run: node node_modules/webpack/bin/webpack.js --mode development working-directory: "apps/block_scout_web/assets" - run: ./bin/install_chrome_headless.sh - - name: mix test --exclude no_parity + - name: prepare DB run: | mix ecto.create --quiet mix ecto.migrate - cd apps/block_scout_web - mix test --no-start --exclude no_parity env: - MIX_ENV: test + # match POSTGRES_PASSWORD for postgres image below + PGPASSWORD: postgres + # match POSTGRES_USER for postgres image below + PGUSER: postgres + - name: coveralls + run: mix coveralls.github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # match POSTGRES_PASSWORD for postgres image below PGPASSWORD: postgres # match POSTGRES_USER for postgres image below PGUSER: postgres ETHEREUM_JSONRPC_CASE: "EthereumJSONRPC.Case.Parity.Mox" - ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Mox" - # coveralls: - # runs-on: ubuntu-latest - # services: - # postgres: - # image: postgres - # env: - # # Match apps/explorer/config/test.exs config :explorer, Explorer.Repo, database - # POSTGRES_DB: explorer_test - # # match PGPASSWORD for elixir image above - # POSTGRES_PASSWORD: postgres - # # match PGUSER for elixir image above - # POSTGRES_USER: postgres - # # Set health checks to wait until postgres has started - # options: >- - # --health-cmd pg_isready - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps tcp port 5432 on service container to the host - # - 5432:5432 - # steps: - # - uses: actions/checkout@v2 - # - uses: actions/setup-elixir@v1 - # with: - # otp-version: '22.2' - # elixir-version: '1.10.3' - # - run: mix local.hex --force - # - run: mix local.rebar --force - # - name: Cache mix.exs - # uses: actions/cache@v2 - # with: - # path: ~/ - # key: | - # v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - # v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - # v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum "ELIXIR_VERSION.lock" }} - # restore-keys: v8-mix-compile- - # - run: mix deps.get - # - name: Cache node modules - # uses: actions/cache@v2 - # with: - # path: ~/.npm - # key: | - # v7-npm-install-{{ .Branch }}-{{ checksum "apps/block_scout_web/assets/package-lock.json" }} - # 'v7-npm-install-{{ .Branch }}' - # v7-npm-install - # restore-keys: v7-npm-install- - # - run: npm install - # working-directory: apps/explorer - # - name: Cache dependencies - # uses: actions/cache@v2 - # with: - # path: apps/explorer/node_modules - # key: >- - # v3-npm-install-{{ .Branch }}-{{ checksum - # "apps/explorer/package-lock.json" }} - # - name: Cache dependencies - # uses: actions/cache@v2 - # with: - # path: apps/explorer/node_modules - # key: 'v3-npm-install-{{ .Branch }}' - # - name: Cache dependencies - # uses: actions/cache@v2 - # with: - # path: apps/explorer/node_modules - # key: v3-npm-install - # - run: npm install - # working-directory: apps/block_scout_web/assets - # - run: npm rebuild node-sass - # working-directory: apps/block_scout_web/assets - # - name: Cache dependencies - # uses: actions/cache@v2 - # with: - # path: apps/block_scout_web/assets/node_modules - # key: >- - # v7-npm-install-{{ .Branch }}-{{ checksum - # "apps/block_scout_web/assets/package-lock.json" }} - # - name: Cache dependencies - # uses: actions/cache@v2 - # with: - # path: apps/block_scout_web/assets/node_modules - # key: 'v7-npm-install-{{ .Branch }}' - # - name: Cache dependencies - # uses: actions/cache@v2 - # with: - # path: apps/block_scout_web/assets/node_modules - # key: v7-npm-install - # - run: mix compile - # - run: make - # working-directory: "deps/libsecp256k1" - # - name: Cache dependencies - # uses: actions/cache@v2 - # with: - # path: | - # deps - # _build - # key: >- - # v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - # "ELIXIR_VERSION.lock" }}-{{ checksum "mix.lock" }} - # - name: Cache dependencies - # uses: actions/cache@v2 - # with: - # path: | - # deps - # _build - # key: >- - # v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - # "ELIXIR_VERSION.lock" }}-{{ checksum "mix.exs" }} - # - name: Cache dependencies - # uses: actions/cache@v2 - # with: - # path: | - # deps - # _build - # key: >- - # v8-mix-compile-{{ checksum "OTP_VERSION.lock" }}-{{ checksum - # "ELIXIR_VERSION.lock" }} - # - name: Build assets - # run: node node_modules/webpack/bin/webpack.js --mode development - # working-directory: "apps/block_scout_web/assets" - # - run: ./bin/install_chrome_headless.sh - # - name: prepare DB - # run: | - # mix ecto.create --quiet - # mix ecto.migrate - # env: - # MIX_ENV: test - # # match POSTGRES_PASSWORD for postgres image below - # PGPASSWORD: postgres - # # match POSTGRES_USER for postgres image below - # PGUSER: postgres - # - name: coveralls - # run: mix coveralls.html --exclude no_parity --parallel --umbrella - # env: - # MIX_ENV: test - # # match POSTGRES_PASSWORD for postgres image below - # PGPASSWORD: postgres - # # match POSTGRES_USER for postgres image below - # PGUSER: postgres - # ETHEREUM_JSONRPC_CASE: "EthereumJSONRPC.Case.Parity.Mox" - # ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Mox" \ No newline at end of file + ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Mox" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b8f6d8f76..9e51a1451a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - [#3145](https://github.com/poanetwork/blockscout/pull/3145) - Pending txs per address API endpoint ### Fixes +- [#3215](https://github.com/poanetwork/blockscout/pull/3215) - Coveralls in CI through Github Actions - [#3214](https://github.com/poanetwork/blockscout/pull/3214) - Fix current token balances fetcher - [#3143](https://github.com/poanetwork/blockscout/pull/3143) - Fix "Connection lost..." error at address page - [#3209](https://github.com/poanetwork/blockscout/pull/3209) - GraphQL: fix internal server error at request of internal transactions at address diff --git a/apps/block_scout_web/mix.exs b/apps/block_scout_web/mix.exs index b725b274c6..1cc7b7ab1c 100644 --- a/apps/block_scout_web/mix.exs +++ b/apps/block_scout_web/mix.exs @@ -83,7 +83,7 @@ defmodule BlockScoutWeb.Mixfile do {:cldr_utils, "~> 2.3"}, {:ex_machina, "~> 2.1", only: [:test]}, # Code coverage - {:excoveralls, "~> 0.10.0", only: [:test], github: "KronicDeth/excoveralls", branch: "circle-workflows"}, + {:excoveralls, "~> 0.13.1"}, {:explorer, in_umbrella: true}, {:exvcr, "~> 0.10", only: :test}, # HTML CSS selectors for Phoenix controller tests diff --git a/apps/ethereum_jsonrpc/mix.exs b/apps/ethereum_jsonrpc/mix.exs index 3118c15882..bcee381e6c 100644 --- a/apps/ethereum_jsonrpc/mix.exs +++ b/apps/ethereum_jsonrpc/mix.exs @@ -68,7 +68,7 @@ defmodule EthereumJsonrpc.MixProject do # Static Type Checking {:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false}, # Code coverage - {:excoveralls, "~> 0.10.0", only: [:test], github: "KronicDeth/excoveralls", branch: "circle-workflows"}, + {:excoveralls, "~> 0.13.1"}, # JSONRPC HTTP Post calls {:httpoison, "~> 1.6"}, # Decode/Encode JSON for JSONRPC @@ -91,7 +91,7 @@ defmodule EthereumJsonrpc.MixProject do {:websocket_client, "~> 1.3"}, {:decimal, "~> 1.0"}, {:decorator, "~> 1.2"}, - {:hackney, "~> 1.15.2"}, + {:hackney, "~> 1.16"}, {:poolboy, "~> 1.5.2"} ] end diff --git a/apps/explorer/mix.exs b/apps/explorer/mix.exs index 99d0dc2d6f..3108a1add2 100644 --- a/apps/explorer/mix.exs +++ b/apps/explorer/mix.exs @@ -82,7 +82,7 @@ defmodule Explorer.Mixfile do # Data factory for testing {:ex_machina, "~> 2.3", only: [:test]}, # Code coverage - {:excoveralls, "~> 0.10.0", only: [:test], github: "KronicDeth/excoveralls", branch: "circle-workflows"}, + {:excoveralls, "~> 0.13.1"}, {:exvcr, "~> 0.10", only: :test}, {:httpoison, "~> 1.6"}, {:jason, "~> 1.0"}, diff --git a/apps/indexer/mix.exs b/apps/indexer/mix.exs index 7258b21f3f..355330dbac 100644 --- a/apps/indexer/mix.exs +++ b/apps/indexer/mix.exs @@ -51,7 +51,7 @@ defmodule Indexer.MixProject do # RLP encoding {:ex_rlp, "~> 0.5.2"}, # Code coverage - {:excoveralls, "~> 0.10.0", only: [:test], github: "KronicDeth/excoveralls", branch: "circle-workflows"}, + {:excoveralls, "~> 0.13.1"}, # Importing to database {:explorer, in_umbrella: true}, # libsecp2561k1 crypto functions diff --git a/mix.exs b/mix.exs index ada5ee6831..d892ec6feb 100644 --- a/mix.exs +++ b/mix.exs @@ -75,7 +75,7 @@ defmodule BlockScout.Mixfile do # Documentation {:ex_doc, "~> 0.19.0", only: [:dev]}, # Code coverage - {:excoveralls, "~> 0.10.0", only: [:test], github: "KronicDeth/excoveralls", branch: "circle-workflows"} + {:excoveralls, "~> 0.13.1"} ] end end diff --git a/mix.lock b/mix.lock index a603b839c0..921c8140cb 100644 --- a/mix.lock +++ b/mix.lock @@ -11,7 +11,7 @@ "briefly": {:git, "https://github.com/CargoSense/briefly.git", "2526e9674a4e6996137e066a1295ea60962712b8", []}, "bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm", "7af5c7e09fe1d40f76c8e4f9dd2be7cebd83909f31fee7cd0e9eadc567da8353"}, "bypass": {:hex, :bypass, "1.0.0", "b78b3dcb832a71aca5259c1a704b2e14b55fd4e1327ff942598b4e7d1a7ad83d", [:mix], [{:plug, "~> 1.7", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 1.0 or ~> 2.0", [hex: :plug_cowboy, repo: "hexpm", optional: false]}], "hexpm", "5a1dc855dfcc86160458c7a70d25f65d498bd8012bd4c06a8d3baa368dda3c45"}, - "certifi": {:hex, :certifi, "2.5.1", "867ce347f7c7d78563450a18a6a28a8090331e77fa02380b4a21962a65d36ee5", [:rebar3], [{:parse_trans, "~>3.3", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm", "805abd97539caf89ec6d4732c91e62ba9da0cda51ac462380bbd28ee697a8c42"}, + "certifi": {:hex, :certifi, "2.5.2", "b7cfeae9d2ed395695dd8201c57a2d019c0c43ecaf8b8bcb9320b40d6662f340", [:rebar3], [{:parse_trans, "~>3.3", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm", "3b3b5f36493004ac3455966991eaf6e768ce9884693d9968055aeeeb1e575040"}, "cldr_utils": {:hex, :cldr_utils, "2.3.0", "e7e8b5ad7494a929c1b620cc489c3aa3f6e7e5299584c1a934bbdb56d1a53c70", [:mix], [{:decimal, "~> 1.5", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm", "a865f4bbf024028e84787398054aa080fc38a714e1ced853e2803e3b4e597e63"}, "combine": {:hex, :combine, "0.10.0", "eff8224eeb56498a2af13011d142c5e7997a80c8f5b97c499f84c841032e429f", [:mix], [], "hexpm", "1b1dbc1790073076580d0d1d64e42eae2366583e7aecd455d1215b0d16f2451b"}, "comeonin": {:hex, :comeonin, "4.1.2", "3eb5620fd8e35508991664b4c2b04dd41e52f1620b36957be837c1d7784b7592", [:mix], [{:argon2_elixir, "~> 1.2", [hex: :argon2_elixir, repo: "hexpm", optional: true]}, {:bcrypt_elixir, "~> 0.12.1 or ~> 1.0", [hex: :bcrypt_elixir, repo: "hexpm", optional: true]}, {:pbkdf2_elixir, "~> 0.12", [hex: :pbkdf2_elixir, repo: "hexpm", optional: true]}], "hexpm", "d8700a0ca4dbb616c22c9b3f6dd539d88deaafec3efe66869d6370c9a559b3e9"}, @@ -44,7 +44,7 @@ "ex_rlp": {:hex, :ex_rlp, "0.5.2", "7f4ce7bd55e543c054ce6d49629b01e9833c3462e3d547952be89865f39f2c58", [:mix], [], "hexpm", "1b8b8f72f8399ace4e096b99c653cba8c52dc6db17b6b410771c0f088774db82"}, "ex_utils": {:hex, :ex_utils, "0.1.7", "2c133e0bcdc49a858cf8dacf893308ebc05bc5fba501dc3d2935e65365ec0bf3", [:mix], [], "hexpm", "66d4fe75285948f2d1e69c2a5ddd651c398c813574f8d36a9eef11dc20356ef6"}, "exactor": {:hex, :exactor, "2.2.4", "5efb4ddeb2c48d9a1d7c9b465a6fffdd82300eb9618ece5d34c3334d5d7245b1", [:mix], [], "hexpm", "1222419f706e01bfa1095aec9acf6421367dcfab798a6f67c54cf784733cd6b5"}, - "excoveralls": {:git, "https://github.com/KronicDeth/excoveralls.git", "0a859b68851eeba9b43eba59fbc8f9098299cfe1", [branch: "circle-workflows"]}, + "excoveralls": {:hex, :excoveralls, "0.13.1", "b9f1697f7c9e0cfe15d1a1d737fb169c398803ffcbc57e672aa007e9fd42864c", [:mix], [{:hackney, "~> 1.16", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "b4bb550e045def1b4d531a37fb766cbbe1307f7628bf8f0414168b3f52021cce"}, "exjsx": {:hex, :exjsx, "4.0.0", "60548841e0212df401e38e63c0078ec57b33e7ea49b032c796ccad8cde794b5c", [:mix], [{:jsx, "~> 2.8.0", [hex: :jsx, repo: "hexpm", optional: false]}], "hexpm", "32e95820a97cffea67830e91514a2ad53b888850442d6d395f53a1ac60c82e07"}, "exth_crypto": {:hex, :exth_crypto, "0.1.6", "8e636a9bcb75d8e32451be96e547a495121ed2178d078db294edb0f81f7cf2e8", [:mix], [{:binary, "~> 0.0.4", [hex: :binary, repo: "hexpm", optional: false]}, {:keccakf1600, "~> 2.0.0", [hex: :keccakf1600_orig, repo: "hexpm", optional: false]}, {:libsecp256k1, "~> 0.1.9", [hex: :libsecp256k1, repo: "hexpm", optional: false]}], "hexpm", "45d6faf4b889f8fc526deba059e0c7947423784ab1e7fa85be8db4c46cf4416b"}, "exvcr": {:hex, :exvcr, "0.10.1", "cb266e5cc0d4fef12572ce6673d13f97aa3c302911010d64d51cee0690f566d1", [:mix], [{:exactor, "~> 2.2", [hex: :exactor, repo: "hexpm", optional: false]}, {:exjsx, "~> 4.0", [hex: :exjsx, repo: "hexpm", optional: false]}, {:httpoison, "~> 1.0", [hex: :httpoison, repo: "hexpm", optional: true]}, {:httpotion, "~> 3.1", [hex: :httpotion, repo: "hexpm", optional: true]}, {:ibrowse, "~> 4.4", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:meck, "~> 0.8", [hex: :meck, repo: "hexpm", optional: false]}], "hexpm", "643cb18909d93b42d7be6fca7c9737284024a7200f9cb81dc4b3666afd840ede"}, @@ -53,10 +53,10 @@ "flow": {:hex, :flow, "0.14.3", "0d92991fe53035894d24aa8dec10dcfccf0ae00c4ed436ace3efa9813a646902", [:mix], [{:gen_stage, "~> 0.14.0", [hex: :gen_stage, repo: "hexpm", optional: false]}], "hexpm", "da6177f8d04f663a2894e38f9b55b293c69cb230c60f81bb8c090eb713aa4a45"}, "gen_stage": {:hex, :gen_stage, "0.14.2", "6a2a578a510c5bfca8a45e6b27552f613b41cf584b58210f017088d3d17d0b14", [:mix], [], "hexpm", "1f201083ca2ee1ea2b8e1eb6e98d9842ef93f2e5efa2d602740ab0c56c2bc90b"}, "gettext": {:hex, :gettext, "0.16.1", "e2130b25eebcbe02bb343b119a07ae2c7e28bd4b146c4a154da2ffb2b3507af2", [:mix], [], "hexpm", "dd3a7ea5e3e87ee9df29452dd9560709b4c7cc8141537d0b070155038d92bdf1"}, - "hackney": {:hex, :hackney, "1.15.2", "07e33c794f8f8964ee86cebec1a8ed88db5070e52e904b8f12209773c1036085", [:rebar3], [{:certifi, "2.5.1", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "6.0.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.5", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm", "e0100f8ef7d1124222c11ad362c857d3df7cb5f4204054f9f0f4a728666591fc"}, + "hackney": {:hex, :hackney, "1.16.0", "5096ac8e823e3a441477b2d187e30dd3fff1a82991a806b2003845ce72ce2d84", [:rebar3], [{:certifi, "2.5.2", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "6.0.1", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.3.0", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.6", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm", "3bf0bebbd5d3092a3543b783bf065165fa5d3ad4b899b836810e513064134e18"}, "html_entities": {:hex, :html_entities, "0.4.0", "f2fee876858cf6aaa9db608820a3209e45a087c5177332799592142b50e89a6b", [:mix], [], "hexpm", "3e3d7156a272950373ce5a4018b1490bea26676f8d6a7d409f6fac8568b8cb9a"}, "httpoison": {:hex, :httpoison, "1.6.2", "ace7c8d3a361cebccbed19c283c349b3d26991eff73a1eaaa8abae2e3c8089b6", [:mix], [{:hackney, "~> 1.15 and >= 1.15.2", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "aa2c74bd271af34239a3948779612f87df2422c2fdcfdbcec28d9c105f0773fe"}, - "idna": {:hex, :idna, "6.0.0", "689c46cbcdf3524c44d5f3dde8001f364cd7608a99556d8fbd8239a5798d4c10", [:rebar3], [{:unicode_util_compat, "0.4.1", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "4bdd305eb64e18b0273864920695cb18d7a2021f31a11b9c5fbcd9a253f936e2"}, + "idna": {:hex, :idna, "6.0.1", "1d038fb2e7668ce41fbf681d2c45902e52b3cb9e9c77b55334353b222c2ee50c", [:rebar3], [{:unicode_util_compat, "0.5.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "a02c8a1c4fd601215bb0b0324c8a6986749f807ce35f25449ec9e69758708122"}, "jason": {:hex, :jason, "1.2.1", "12b22825e22f468c02eb3e4b9985f3d0cb8dc40b9bd704730efa11abd2708c44", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "b659b8571deedf60f79c5a608e15414085fa141344e2716fbd6988a084b5f993"}, "jsx": {:hex, :jsx, "2.8.3", "a05252d381885240744d955fbe3cf810504eb2567164824e19303ea59eef62cf", [:mix, :rebar3], [], "hexpm", "fc3499fed7a726995aa659143a248534adc754ebd16ccd437cd93b649a95091f"}, "junit_formatter": {:hex, :junit_formatter, "3.0.1", "4ed76a50886717a6d683a978cec775abdcb88d9d51cfddd3d8fbf8e6af4625da", [:mix], [], "hexpm", "55ba8f459c0d2568bb6ca7c44f1b1384194773fce4d8bc99454fa40320664af9"}, @@ -107,11 +107,11 @@ "spandex_datadog": {:hex, :spandex_datadog, "0.4.0", "75113a73e843123074886a2e31994af07d6e0632749a8d97e9ca6157b120c287", [:mix], [{:msgpax, "~> 2.2.1", [hex: :msgpax, repo: "hexpm", optional: false]}, {:spandex, "~> 2.3", [hex: :spandex, repo: "hexpm", optional: false]}], "hexpm", "34de8fd2942e3c1097d596391fe2a8102591f2fa5f7edb6fe397559c0d39edcf"}, "spandex_ecto": {:hex, :spandex_ecto, "0.4.0", "deaeaddc11a35f1c551206c53d09bb93a0da5808dbef751430e465c8c7de01d3", [:mix], [{:spandex, "~> 2.2", [hex: :spandex, repo: "hexpm", optional: false]}], "hexpm", "ef6037134548bba7a3b0efe39d8fc1a0ff95b43d6a046f193a552d311a637a97"}, "spandex_phoenix": {:hex, :spandex_phoenix, "0.3.2", "e81889d80852a895cf62ce2e25181b15766d21e8647962e0a4458414b935feb3", [:mix], [{:plug, "~> 1.3", [hex: :plug, repo: "hexpm", optional: false]}, {:spandex, "~> 2.2", [hex: :spandex, repo: "hexpm", optional: false]}], "hexpm", "6e882bb64093889a73b7b77c426c1fd5651d072cd97e8f3e8d89d502d7b44b48"}, - "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.5", "6eaf7ad16cb568bb01753dbbd7a95ff8b91c7979482b95f38443fe2c8852a79b", [:make, :mix, :rebar3], [], "hexpm", "13104d7897e38ed7f044c4de953a6c28597d1c952075eb2e328bc6d6f2bfc496"}, + "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"}, "telemetry": {:hex, :telemetry, "0.4.2", "2808c992455e08d6177322f14d3bdb6b625fbcfd233a73505870d8738a2f4599", [:rebar3], [], "hexpm", "2d1419bd9dda6a206d7b5852179511722e2b18812310d304620c7bd92a13fcef"}, "timex": {:hex, :timex, "3.6.1", "efdf56d0e67a6b956cc57774353b0329c8ab7726766a11547e529357ffdc1d56", [:mix], [{:combine, "~> 0.10", [hex: :combine, repo: "hexpm", optional: false]}, {:gettext, "~> 0.10", [hex: :gettext, repo: "hexpm", optional: false]}, {:tzdata, "~> 0.1.8 or ~> 0.5 or ~> 1.0.0", [hex: :tzdata, repo: "hexpm", optional: false]}], "hexpm", "f354efb2400dd7a80fd9eb6c8419068c4f632da4ac47f3d8822d6e33f08bc852"}, "tzdata": {:hex, :tzdata, "1.0.1", "f6027a331af7d837471248e62733c6ebee86a72e57c613aa071ebb1f750fc71a", [:mix], [{:hackney, "~> 1.0", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "cf1345dfbce6acdfd4e23cbb36e96e53d1981bc89181cd0b936f4f398f4c0b78"}, - "unicode_util_compat": {:hex, :unicode_util_compat, "0.4.1", "d869e4c68901dd9531385bb0c8c40444ebf624e60b6962d95952775cac5e90cd", [:rebar3], [], "hexpm", "1d1848c40487cdb0b30e8ed975e34e025860c02e419cb615d255849f3427439d"}, + "unicode_util_compat": {:hex, :unicode_util_compat, "0.5.0", "8516502659002cec19e244ebd90d312183064be95025a319a6c7e89f4bccd65b", [:rebar3], [], "hexpm", "d48d002e15f5cc105a696cf2f1bbb3fc72b4b770a184d8420c8db20da2674b38"}, "wallaby": {:hex, :wallaby, "0.22.0", "e5d16bfa7ab23562c8a6e3b0a31445a2fd470ca622082a910114807ba823780d", [:mix], [{:httpoison, "~> 0.12 or ~> 1.0", [hex: :httpoison, repo: "hexpm", optional: false]}, {:poison, ">= 1.4.0", [hex: :poison, repo: "hexpm", optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: false]}], "hexpm", "b5ec4fdb22f79bc1656cf8766718d0ab77e961839a5946a3ecf212448e30bf15"}, "websocket_client": {:hex, :websocket_client, "1.4.2", "f1036e3f9427eecdb66808eee56dbcaeb5a1a352306e6a0d0d23a9487205f4d7", [:rebar3], [], "hexpm", "c005e5f8f2f6a8533c497a509dc52f3e6fb42fa2e0d67bff8ebc8802868d84ed"}, "wobserver": {:git, "https://github.com/poanetwork/wobserver.git", "dae1d987d473c126191bb8f32c089f42a18f8712", [branch: "support-https-updated-deps"]},