Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub CI improvements. #341

Merged
merged 2 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/redis-github-action@1.1.0
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/redis-github-action@1.1.0
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
Loading