Skip to content

Commit

Permalink
chore(ci): Fix hook-migrator CI, better name rust checks (#22905)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar authored Jun 12, 2024
1 parent 6600155 commit 57647c8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/rust-docker-build.yml
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/rust-hook-migrator-docker.yml
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Rust test CI

on:
workflow_dispatch:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -118,6 +123,7 @@ jobs:
run: cargo test --all-features

linting:
name: Lint rust services
needs: changes
runs-on: depot-ubuntu-22.04-4

Expand Down Expand Up @@ -163,6 +169,7 @@ jobs:
run: cargo check --all-features

shear:
name: Shear rust services
needs: changes
runs-on: depot-ubuntu-22.04-4

Expand Down

0 comments on commit 57647c8

Please sign in to comment.