-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (43 loc) · 1.17 KB
/
pr-validate-connect.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
name: "Connect PR Validation"
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- "connect/**"
- ".github/workflows/pr-validate-connect.yaml"
concurrency:
group: prvalidate
cancel-in-progress: true
jobs:
verify-dotnet:
name: Verify Dotnet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: Run dotnet format validation
run: |
dotnet format ./connect/dotnet/Trinsic.Connect.sln
dotnet build ./connect/dotnet/Trinsic.Connect.sln
shell: pwsh
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
verify-typescript:
name: Verify Typescript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Run Typescript format validation
run: ./.github/workflows/connect/build-typescript.ps1
shell: pwsh
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4