From b57e704bb350f3a108817ffd2ab296e811387708 Mon Sep 17 00:00:00 2001 From: Wolmin Date: Wed, 26 Oct 2022 07:52:41 +0200 Subject: [PATCH 1/5] Add toolchain file + gh action file --- .github/workflows/unit_test.yml | 34 +++++++++++++++++++++++++++++++++ rust-toolchain | 1 + 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/unit_test.yml create mode 100644 rust-toolchain diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml new file mode 100644 index 0000000000000..bbf75ab72ecb4 --- /dev/null +++ b/.github/workflows/unit_test.yml @@ -0,0 +1,34 @@ +name: unit-tests + +on: + pull_request: + branches: + - '**' + push: + paths-ignore: + - '*.md' + branches: + - main + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + check-test-and-lint: + name: Run unit tests + runs-on: ubuntu-latest + env: + CARGO_INCREMENTAL: 0 + steps: + - name: Checkout source code + uses: actions/checkout@v2 + - name: Install rust toolchain + uses: actions-rs/toolchain@v1 + - name: Install WASM target + run: rustup target add wasm32-unknown-unknown + - name: Run Unit Test Suite + uses: actions-rs/cargo@v1 + with: + command: test + args: --lib diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000000000..1f1f6b18d9a3e --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +nightly-2022-08-12 From 1740f001534f936d39ea13856230ed1b34d5fad4 Mon Sep 17 00:00:00 2001 From: Wolmin Date: Mon, 7 Nov 2022 13:09:02 +0100 Subject: [PATCH 2/5] Add build action --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000000..a32b960425edc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: rust-build + +on: + pull_request: + branches: + - '**' + push: + paths-ignore: + - '*.md' + branches: + - main + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + build-repo: + name: Build Rust repository + runs-on: ubuntu-latest + env: + CARGO_INCREMENTAL: 0 + steps: + - name: Checkout source code + uses: actions/checkout@v2 + - name: Install rust toolchain + uses: actions-rs/toolchain@v1 + - name: Install WASM target + run: rustup target add wasm32-unknown-unknown + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --release From ed97b39f4769f90cfb64be176b1edad8de81b421 Mon Sep 17 00:00:00 2001 From: Wolmin Date: Wed, 9 Nov 2022 07:36:54 +0100 Subject: [PATCH 3/5] Adjust test workflow for client only --- .github/workflows/unit_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index bbf75ab72ecb4..c5ad85e377bf9 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -31,4 +31,4 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --lib + args: --workspace client --lib From fd334f9f040c1127b3bdf09391600f531a0c356d Mon Sep 17 00:00:00 2001 From: Wolmin Date: Wed, 9 Nov 2022 09:28:22 +0100 Subject: [PATCH 4/5] Delete testing action --- .github/workflows/unit_test.yml | 34 --------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/workflows/unit_test.yml diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml deleted file mode 100644 index c5ad85e377bf9..0000000000000 --- a/.github/workflows/unit_test.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: unit-tests - -on: - pull_request: - branches: - - '**' - push: - paths-ignore: - - '*.md' - branches: - - main - -concurrency: - group: ${{ github.ref }}-${{ github.workflow }} - cancel-in-progress: true - -jobs: - check-test-and-lint: - name: Run unit tests - runs-on: ubuntu-latest - env: - CARGO_INCREMENTAL: 0 - steps: - - name: Checkout source code - uses: actions/checkout@v2 - - name: Install rust toolchain - uses: actions-rs/toolchain@v1 - - name: Install WASM target - run: rustup target add wasm32-unknown-unknown - - name: Run Unit Test Suite - uses: actions-rs/cargo@v1 - with: - command: test - args: --workspace client --lib From 9ae34e3ec7760cad6b1991d433ad426144f4ba95 Mon Sep 17 00:00:00 2001 From: Wolmin Date: Thu, 10 Nov 2022 10:01:59 +0100 Subject: [PATCH 5/5] Change step name --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a32b960425edc..3d8a07666bf73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ concurrency: jobs: build-repo: - name: Build Rust repository + name: Build repository runs-on: ubuntu-latest env: CARGO_INCREMENTAL: 0