-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (53 loc) · 1.44 KB
/
testing-csharp.yml
File metadata and controls
64 lines (53 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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