Skip to content

Commit

Permalink
Merge branch 'master' into introduce-external-account-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Sep 10, 2024
2 parents 198623b + 80c768f commit 157661e
Show file tree
Hide file tree
Showing 323 changed files with 10,521 additions and 30,049 deletions.
6 changes: 1 addition & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ updates:
interval: daily
time: "03:00"
timezone: Europe/Berlin
- package-ecosystem: npm
directory: "/docs"
schedule:
interval: "daily"
- package-ecosystem: cargo
directory: "/"
# Handle updates for crates from github.com/paritytech/substrate manually.
# Handle updates for crates from https://github.com/paritytech/polkadot-sdk manually.
ignore:
- dependency-name: "sc-*"
- dependency-name: "sp-*"
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/cancel.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/docs.yml

This file was deleted.

11 changes: 2 additions & 9 deletions .github/workflows/editorconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Submodules
run: git submodule update --init --recursive
- name: Init
run: |
wget https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.1.0/ec-linux-amd64.tar.gz
tar xvf ec-linux-amd64.tar.gz
chmod +x bin/ec-linux-amd64
- name: Check
run: bin/ec-linux-amd64
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker
62 changes: 62 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Lint

on:
push:
branches:
- master
- 'polkadot-v**'
paths-ignore:
- "**.md"
pull_request:
branches:
- master
- 'polkadot-v**'
paths-ignore:
- "**.md"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"

jobs:
lint:
name: Run Code Lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Cache cargo registry & git sources
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-lint-
${{ runner.os }}-cargo-
- name: Run sccache
uses: mozilla-actions/[email protected]

- name: Install Rust toolchain
run: make setup

- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check code format
run: make fmt-check

- name: Run clippy
run: make clippy-release
94 changes: 0 additions & 94 deletions .github/workflows/rust.yml

This file was deleted.

97 changes: 97 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Test

on:
push:
branches:
- master
- 'polkadot-v**'
pull_request:
branches:
- master
- 'polkadot-v**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"

jobs:
unit-test:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Cache cargo registry & git sources
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-unittest-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-unittest-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-unittest-
${{ runner.os }}-cargo-
- name: Run sccache
uses: mozilla-actions/[email protected]

- name: Install Rust toolchain
run: make setup

- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run unit tests
run: make test-release

integration-test:
name: Run Integration Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Cache cargo registry & git sources
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-integration-test-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-integration-test-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-integration-test-
${{ runner.os }}-cargo-
- name: Run sccache
uses: mozilla-actions/[email protected]

- name: Install Rust toolchain
run: make setup

- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build client
run: make build-release

- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Run integration tests
run: make integration-test
16 changes: 0 additions & 16 deletions .maintain/node-template-release.sh

This file was deleted.

Loading

0 comments on commit 157661e

Please sign in to comment.