-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (45 loc) · 1.3 KB
/
on-push-to-main-branch.yaml
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
name: On push Main
on:
push:
branches: [main]
jobs:
build_csharp:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
grpc-web: [false, true]
runs-on: ${{ matrix.os }}
env:
MOMENTO_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
steps:
- name: Get current time
uses: gerred/actions/current-time@master
id: current-time
- name: Setup repo
uses: actions/checkout@v2
with:
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }}
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- name: Build
run: make GRPC_WEB=${{ matrix.grpc-web }} build
- name: Test
run: make test
generate_readme:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v2
with:
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }}
- name: Generate README
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2
with:
project_status: official
project_stability: stable
project_type: sdk
sdk_language: .NET
template_file: ./README.template.md
output_file: ./README.md
dev_docs_slug: dotnet