Skip to content

Commit

Permalink
Merge pull request #341 from chirino/ci
Browse files Browse the repository at this point in the history
GitHub CI improvements.
  • Loading branch information
chirino authored May 23, 2024
2 parents 0a70dff + 1c0321e commit 386ce89
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 18 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Benchmark

on:
workflow_dispatch:
push:
branches:
- main
tags:
- "*"

jobs:
bench:
name: Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: supercharge/[email protected]
with:
redis-version: 7
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
- run: cargo bench
6 changes: 4 additions & 2 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ name: Build Image
on:
workflow_dispatch:
push:
branches: ['*']
tags: ['*']
branches:
- main
tags:
- "*"

env:
IMG_REGISTRY_HOST: quay.io
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
Expand All @@ -33,6 +34,7 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- uses: Swatinem/rust-cache@v2
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: e2e tests
on:
push:
branches:
- '*'
- 'main'
pull_request:
branches:
- '*'
Expand Down
20 changes: 5 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Limitador
on:
push:
branches:
- '*'
- 'main'
pull_request:
branches:
- '*'
Expand All @@ -18,6 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
Expand All @@ -32,6 +33,7 @@ jobs:
with:
redis-version: 7
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
Expand All @@ -45,6 +47,7 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check

clippy:
Expand All @@ -55,25 +58,12 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
- run: cargo clippy --all-features --all-targets -- -D warnings

bench:
name: Bench
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: supercharge/[email protected]
with:
redis-version: 7
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
- run: cargo bench

kind:
name: Try in kind (Kubernetes in Docker)
runs-on: ubuntu-latest
Expand Down

0 comments on commit 386ce89

Please sign in to comment.