Skip to content

Commit

Permalink
Install protoc to run tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rcorre committed Oct 2, 2024
1 parent d8ef7f1 commit cee466d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ jobs:

runs-on: ubuntu-latest

env:
RUST_LOG: pbls=trace

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Install protoc
run: |
curl https://github.com/protocolbuffers/protobuf/releases/download/v28.2/protoc-28.2-linux-x86_64.zip -Lo /tmp/protoc.zip
unzip /tmp/protoc.zip
bin/protoc --version
- name: Run tests
run: cargo test --verbose
run: PATH="$PATH:bin/" cargo test --verbose
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
!testdata/.pbls.toml
1 change: 1 addition & 0 deletions testdata/.pbls.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
proto_paths=["."]

0 comments on commit cee466d

Please sign in to comment.