Skip to content

CI: Fixed protoc test dependencies in case of protobuf #20

CI: Fixed protoc test dependencies in case of protobuf

CI: Fixed protoc test dependencies in case of protobuf #20

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
PROTOC_VERSION: 3.20.3
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable, "1.72"]
test:
- name: Test proto-mapper-core `protobuf` feature
package: proto-mapper
features: --features protobuf
# tests:
- name: Test proto-mapper-core `prost` feature
package: proto-mapper
features: --features prost
# tests:
- name: Test proto-mapper `protobuf` feature
package: proto-mapper
features: --features protobuf
tests: --test all_tests
- name: Test proto-mapper `prost` feature
package: proto-mapper
features: --features prost
tests: --test all_tests
steps:
- uses: actions/checkout@v3
- name: Install toolchain (${{ matrix.toolchain }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Install protoc
uses: taiki-e/install-action@v2
with:
tool: protoc@${{ env.PROTOC_VERSION }}
- uses: Swatinem/rust-cache@v2
- name: ${{matrix.test.name}}
run: cargo test --package ${{matrix.test.package}} ${{matrix.test.features}} ${{matrix.test.tests}}