From c50ee7e4788d31cf842110b52b42f51c5e66d633 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 27 May 2022 14:49:22 +1000 Subject: [PATCH] fix(ci): Add lightwalletd gRPC, clippy, rustfmt patch jobs (#4518) * Add lightwalletd-grpc-test patch job * Patch Clippy and Rustfmt CI jobs * Only run docker always patches on PRs * Only run docker patches on PRs --- ...tinous-integration-docker.patch-always.yml | 4 --- .../continous-integration-docker.patch.yml | 25 +++++-------------- .github/workflows/lint.patch.yml | 19 ++++++++++++++ 3 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/lint.patch.yml diff --git a/.github/workflows/continous-integration-docker.patch-always.yml b/.github/workflows/continous-integration-docker.patch-always.yml index bf540629..82b7acec 100644 --- a/.github/workflows/continous-integration-docker.patch-always.yml +++ b/.github/workflows/continous-integration-docker.patch-always.yml @@ -10,10 +10,6 @@ on: branches: - main - push: - branches: - - main - jobs: regenerate-stateful-disks: name: Zebra checkpoint / Run sync-to-checkpoint test diff --git a/.github/workflows/continous-integration-docker.patch.yml b/.github/workflows/continous-integration-docker.patch.yml index 56b8223e..87c10930 100644 --- a/.github/workflows/continous-integration-docker.patch.yml +++ b/.github/workflows/continous-integration-docker.patch.yml @@ -22,25 +22,6 @@ on: - '.github/workflows/deploy-gcp-tests.yml' - '.github/workflows/build-docker-image.yml' - push: - branches: - - main - paths-ignore: - # code and tests - - '**/*.rs' - # hard-coded checkpoints and proptest regressions - - '**/*.txt' - # test data snapshots - - '**/*.snap' - # dependencies - - '**/Cargo.toml' - - '**/Cargo.lock' - # workflow definitions - - 'docker/**' - - '.github/workflows/continous-integration-docker.yml' - - '.github/workflows/deploy-gcp-tests.yml' - - '.github/workflows/build-docker-image.yml' - jobs: get-available-disks: name: Find available cached state disks @@ -107,3 +88,9 @@ jobs: runs-on: ubuntu-latest steps: - run: 'echo "No build required"' + + lightwalletd-grpc-test: + name: lightwalletd GRPC tests / Run lwd-grpc-wallet test + runs-on: ubuntu-latest + steps: + - run: 'echo "No build required"' diff --git a/.github/workflows/lint.patch.yml b/.github/workflows/lint.patch.yml new file mode 100644 index 00000000..cbb85228 --- /dev/null +++ b/.github/workflows/lint.patch.yml @@ -0,0 +1,19 @@ +name: Lint + +on: + pull_request: + branches: + - 'main' + +jobs: + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - run: 'echo "No build required"' + + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - run: 'echo "No build required"'