Skip to content

Add protobuf deserialization tests #694

Add protobuf deserialization tests

Add protobuf deserialization tests #694

Workflow file for this run

# For details of what checks are run for PRs please refer below
name: .NET Core CI
on: [pull_request, workflow_dispatch]
env:
SNAPSHOOTER_STRICT_MODE: true
jobs:
# Fail if there are build warnings
#
# As a general code quality check we use FxCop analyzers.
#
# To check for build warnings locally you may need to run a clean build.
#
# This can be done by running `dotnet clean` before running `dotnet build`
build-warnings:
name: Build warnings check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Build
run: dotnet build /WarnAsError
test:
name: Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# macos currently disabled. see issue #285 for more info.
os: [ubuntu-latest, windows-latest]
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: SnapshooterHotfixSymlinkLinux
if: matrix.os == 'ubuntu-latest'
run: sudo ln -s "$GITHUB_WORKSPACE" /_
shell: bash
- name: SnapshooterHotfixSymlinkWindows
if: matrix.os == 'windows-latest'
run: New-Item -ItemType SymbolicLink -Path "/_" -Target "$env:GITHUB_WORKSPACE"
shell: pwsh
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Install protocol buffers compiler on Linux
if: matrix.os == 'ubuntu-latest'
run: |
wget -O protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
unzip protoc.zip -d $HOME/.local
export PATH="$PATH:$HOME/.local/bin"
- name: Tests
run: |
dotnet test
documentation-build:
name: "Build documentation"
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Download DocFX
run: |
wget -O docfx.zip https://github.com/dotnet/docfx/releases/download/v2.58.4/docfx.zip
unzip docfx.zip -d docfx/
chmod +x docfx/docfx.exe
- name: Build documentation
run: |
docfx/docfx.exe docs/docfx.json