Skip to content

Commit

Permalink
temp: error handling
Browse files Browse the repository at this point in the history
fix: error handling

fix: install proto before build
  • Loading branch information
zk-steve authored and thuan2172001 committed Mar 10, 2024
1 parent cb4f112 commit 24ccae7
Show file tree
Hide file tree
Showing 28 changed files with 3,399 additions and 140 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,22 @@ on:
- main

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install protoc and grpcio-tools
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
cargo install grpcio-compiler
cargo-check:
name: Cargo check
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
Expand All @@ -26,6 +39,7 @@ jobs:
fmt-check:
name: Rust fmt
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
Expand All @@ -42,6 +56,7 @@ jobs:
test-and-coverage:
name: Test and Coverage
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -53,8 +68,7 @@ jobs:
cargo install cargo-tarpaulin
- name: Run tests with coverage
run: |
cargo tarpaulin --all-features --verbose
run: cargo tarpaulin --all-features --verbose

release-github-artifact:
name: Release Packaging
Expand Down Expand Up @@ -117,9 +131,8 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push docker image
run: |
run: |
docker build . --tag ${{ env.DOCKER_HUB_REPOSITORY }}:latest
docker push ${{ env.DOCKER_HUB_REPOSITORY }}:latest
13 changes: 13 additions & 0 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,22 @@ on:
- cron: '27 4 * * 6'

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install protoc and grpcio-tools
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
cargo install grpcio-compiler
rust-clippy-analyze:
name: Run rust-clippy analyzing
runs-on: ubuntu-latest
needs: setup
permissions:
contents: read
security-events: write
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
target/
results.xml
results.xml
config/override-config.toml
**/override-config.toml
Loading

0 comments on commit 24ccae7

Please sign in to comment.