Update version to v0.1.2 #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-core | |
features: --features protobuf | |
# tests: | |
- name: Test proto-mapper-core `prost` feature | |
package: proto-mapper-core | |
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}} |