Skip to content

Commit

Permalink
Merge pull request #35 from IowaComputerGurus/feature/ci-updates
Browse files Browse the repository at this point in the history
Updated to fix all CI items
  • Loading branch information
mitchelsellers committed Nov 12, 2022
2 parents 447d9a1 + 6e3fc38 commit d3b55d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
env:
solution-path: './src/NetCore.Utilities.Email.Smtp.sln'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Ensure .NET Installed
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

Expand All @@ -28,7 +28,7 @@ jobs:

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected].7
uses: gittools/actions/gitversion/[email protected].15
with:
useConfigFile: true

Expand All @@ -40,27 +40,30 @@ jobs:
run: dotnet test "${{ env.solution-path }}" --no-build --configuration Release

code-quality:
if: github.actor != 'dependabot[bot]'
runs-on: windows-latest
name: Analyze Code Quality
env:
solution-path: './src/NetCore.Utilities.Email.Smtp.sln'
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.11
- uses: actions/checkout@v2
java-version: 11
distribution: zulu

- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarCloud packages
uses: actions/cache@v1
uses: actions/cache@v3.0.11
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v1
uses: actions/cache@v3.0.11
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
Expand All @@ -77,7 +80,7 @@ jobs:

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected].7
uses: gittools/actions/gitversion/[email protected].15
with:
useConfigFile: true

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
env:
solution-path: './src/NetCore.Utilities.Email.Smtp.sln'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Ensure .NET Installed
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

Expand All @@ -27,7 +27,7 @@ jobs:

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected].7
uses: gittools/actions/gitversion/[email protected].15
with:
useConfigFile: true

Expand Down

0 comments on commit d3b55d1

Please sign in to comment.