diff --git a/.github/workflows/rust-docker-build.yml b/.github/workflows/rust-docker-build.yml index d44e5d847e601..6c97bc8e7731a 100644 --- a/.github/workflows/rust-docker-build.yml +++ b/.github/workflows/rust-docker-build.yml @@ -1,10 +1,11 @@ -name: Build container images +name: Build rust container images on: workflow_dispatch: push: paths: - 'rust/**' + - '.github/workflows/rust-docker-build.yml' branches: - 'master' diff --git a/.github/workflows/rust-hook-migrator-docker.yml b/.github/workflows/rust-hook-migrator-docker.yml index 2dd7c01d015dc..edfeca0bb8734 100644 --- a/.github/workflows/rust-hook-migrator-docker.yml +++ b/.github/workflows/rust-hook-migrator-docker.yml @@ -1,10 +1,11 @@ -name: Build hook-migrator docker image +name: Build rust hook-migrator docker image on: workflow_dispatch: push: paths: - 'rust/**' + - '.github/workflows/rust-hook-migrator-docker.yml' branches: - 'master' @@ -57,7 +58,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: ghcr.io/posthog/hog-rs/hook-migrator + images: ghcr.io/posthog/posthog/hook-migrator tags: | type=ref,event=pr type=ref,event=branch diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c2c379334980e..2c5f40f1afe4c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Rust test CI on: workflow_dispatch: @@ -31,8 +31,12 @@ jobs: rust: # Avoid running rust tests for irrelevant changes - 'rust/**' + - '.github/workflows/rust.yml' + - '.github/workflows/rust-docker-build.yml' + - '.github/workflows/rust-hook-migrator-docker.yml' build: + name: Build rust services needs: changes runs-on: depot-ubuntu-22.04-4 @@ -68,6 +72,7 @@ jobs: run: cargo build --all --locked --release && find target/release/ -maxdepth 1 -executable -type f | xargs strip test: + name: Test rust services needs: changes runs-on: depot-ubuntu-22.04-4 timeout-minutes: 10 @@ -118,6 +123,7 @@ jobs: run: cargo test --all-features linting: + name: Lint rust services needs: changes runs-on: depot-ubuntu-22.04-4 @@ -163,6 +169,7 @@ jobs: run: cargo check --all-features shear: + name: Shear rust services needs: changes runs-on: depot-ubuntu-22.04-4