feat: Add Protobuf log handler, improve CI toolchain, and enhance code generation #51
Workflow file for this run
This file contains hidden or 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: Testing C# | |
| # Trigger on pushes, PRs (excluding documentation changes), and nightly. | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| schedule: | |
| - cron: 0 0 * * * # daily at 00:00 | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| go-version: 1.21.x | |
| gen_script: bash gen.sh | |
| - os: windows-latest | |
| go-version: 1.21.x | |
| gen_script: cmd /c gen.bat | |
| name: test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Install Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: true | |
| - name: Install .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "8.0.x" | |
| - name: Install Protoc | |
| uses: arduino/setup-protoc@v1 | |
| with: | |
| version: "3.19.3" | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Generate protoconf | |
| working-directory: test/csharp-tableau-loader | |
| run: ${{ matrix.gen_script }} | |
| - name: Build | |
| working-directory: test/csharp-tableau-loader | |
| run: dotnet build | |
| - name: Run loader | |
| working-directory: test/csharp-tableau-loader | |
| run: dotnet run |