parent
1325913afd
commit
f1e746c491
6 changed files with 178 additions and 10 deletions
@ -0,0 +1,27 @@ |
||||
name: 'Non-Bazel Bash Run' |
||||
description: 'Run a bash script for Protobuf CI testing with a non-Bazel build system' |
||||
inputs: |
||||
credentials: |
||||
required: true |
||||
description: "The GCP credentials to use for reading the docker image" |
||||
type: string |
||||
command: |
||||
required: true |
||||
description: A command to run in the docker image |
||||
|
||||
runs: |
||||
using: 'composite' |
||||
steps: |
||||
- name: Setup Runner |
||||
uses: ./.github/actions/internal/setup-runner |
||||
|
||||
- name: Update stale files using Bazel |
||||
uses: ./.github/actions/bazel |
||||
with: |
||||
credentials: ${{ inputs.credentials }} |
||||
bazel-cache: regenerate-stale-files |
||||
bash: ./regenerate_stale_files.sh $BAZEL_FLAGS |
||||
|
||||
- name: Run |
||||
shell: bash |
||||
run: ${{ inputs.command }} |
@ -0,0 +1,30 @@ |
||||
name: C# Tests |
||||
|
||||
on: |
||||
workflow_call: |
||||
inputs: |
||||
safe-checkout: |
||||
required: true |
||||
description: "The SHA key for the commit we want to run over" |
||||
type: string |
||||
|
||||
jobs: |
||||
windows: |
||||
name: Windows |
||||
runs-on: windows-2019 |
||||
steps: |
||||
- name: Checkout pending changes |
||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 |
||||
with: |
||||
ref: ${{ inputs.safe-checkout }} |
||||
|
||||
- name: Setup dotnet |
||||
uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a # v3.0.3 |
||||
with: |
||||
dotnet-version: '6.0.x' |
||||
|
||||
- name: Build |
||||
run: dotnet build csharp/src/Google.Protobuf.sln |
||||
|
||||
- name: Run Tests |
||||
run: dotnet test csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj |
Loading…
Reference in new issue