Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,33 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Commitlint dependencies
run: npm install --save-dev @commitlint/config-conventional
run: npm install --no-save @commitlint/cli @commitlint/config-conventional

- name: Lint commit messages
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
dotnet-version: |
9.0.x
10.0.x

- name: Restore dependencies
run: dotnet restore src/SharpConnector/SharpConnector.csproj
run: dotnet restore src/SharpConnector/SharpConnector.sln

- name: Build
run: dotnet build src/SharpConnector/SharpConnector.csproj --no-restore
run: dotnet build src/SharpConnector/SharpConnector.sln --no-restore --configuration Release

- name: Test
run: dotnet test src/SharpConnector.Tests/SharpConnector.Tests.csproj --no-build --verbosity normal
run: dotnet test src/SharpConnector.Tests/SharpConnector.Tests.csproj --no-build --configuration Release --verbosity normal
Loading
Loading