From 01e6c5b64052f4ffef6ea5ba762666640641592c Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 25 Jun 2024 10:37:51 +0200 Subject: [PATCH] fix (ci): Add files that trigger the backend test (#1559) # Motivation Some changes that affect the rust builds do not trigger the backend (rust code) CI job. For example, [updating the Rust version did not cause any rust build to be run in CI](https://github.com/dfinity/oisy-wallet/pull/1513/checks). # Changes - Include rust and docker files in the list of files that, when changed, cause the backend ci job to be exercised. # Tests See CI: The backend build [was triggered](https://github.com/dfinity/oisy-wallet/pull/1559/checks) by changing the backend test. --- .github/workflows/backend-tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index 4818dff18..6d545204c 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -3,8 +3,17 @@ name: Backend Tests on: pull_request: paths: - - 'src/backend/**' + - # Scripts, GitHub actions that contain 'backend' in their path. + '**/*backend*' + - # The backend source code + 'src/backend/**' - 'src/shared/**' + - # Rust files such as Cargo.lock, Cargo.toml and rust-toolchain.toml + '**/Cargo*' + - '**/*rust*' + - # The dockerfile used in this CI run, and the scripts it COPY's. + 'Dockerfile' + - 'docker/**' workflow_dispatch: jobs: