Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ctor into develop
  • Loading branch information
engineering87 committed Feb 5, 2025
2 parents 08b2012 + 7ad3e56 commit 05cf036
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:
branches:
- '*' # Runs on any pull request targeting any branch

name: Lint commits
jobs:
lint-commits:
Expand All @@ -14,10 +15,12 @@ jobs:
with:
fetch-depth: 0
- name: Fixup git permissions
# https://github.com/actions/checkout/issues/766
shell: bash
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/setup-node@v4.1.0
- run: npm install conventional-changelog
- run: npm install @commitlint/cli
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
with:
node-version: 20
- name: Install commitlint dependencies
run: npm install --save-dev @commitlint/cli @commitlint/config-conventional
- name: Check commit messages
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits || 1 }} --to HEAD
13 changes: 12 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,29 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- 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

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

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

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

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

0 comments on commit 05cf036

Please sign in to comment.