Skip to content

Commit 9ca7d58

Browse files
Merge pull request #16 from IowaComputerGurus/feature/ci
Updated CI
2 parents 0caf092 + e5aa736 commit 9ca7d58

File tree

3 files changed

+25
-12
lines changed

3 files changed

+25
-12
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci-build.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
env:
1515
solution-path: './src/NetCore.Utilities.Email.SendGrid.sln'
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
with:
1919
fetch-depth: 0
2020

2121
- name: Ensure .NET Installed
22-
uses: actions/setup-dotnet@v1
22+
uses: actions/setup-dotnet@v3
2323
with:
2424
dotnet-version: 6.0.x
2525

@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Determine Version
3030
id: gitversion
31-
uses: gittools/actions/gitversion/[email protected].7
31+
uses: gittools/actions/gitversion/[email protected].15
3232
with:
3333
useConfigFile: true
3434

@@ -41,27 +41,29 @@ jobs:
4141

4242

4343
code-quality:
44+
if: github.actor != 'dependabot[bot]'
4445
runs-on: windows-latest
4546
name: Analyze Code Quality
4647
env:
4748
solution-path: './src/NetCore.Utilities.Email.SendGrid.sln'
4849
steps:
4950
- name: Set up JDK 11
50-
uses: actions/setup-java@v1
51+
uses: actions/setup-java@v3
5152
with:
52-
java-version: 1.11
53-
- uses: actions/checkout@v2
53+
java-version: 11
54+
distribution: zulu
55+
- uses: actions/checkout@v3
5456
with:
5557
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
5658
- name: Cache SonarCloud packages
57-
uses: actions/cache@v1
59+
uses: actions/cache@v3.0.11
5860
with:
5961
path: ~\sonar\cache
6062
key: ${{ runner.os }}-sonar
6163
restore-keys: ${{ runner.os }}-sonar
6264
- name: Cache SonarCloud scanner
6365
id: cache-sonar-scanner
64-
uses: actions/cache@v1
66+
uses: actions/cache@v3.0.11
6567
with:
6668
path: .\.sonar\scanner
6769
key: ${{ runner.os }}-sonar-scanner
@@ -78,7 +80,7 @@ jobs:
7880

7981
- name: Determine Version
8082
id: gitversion
81-
uses: gittools/actions/gitversion/[email protected].7
83+
uses: gittools/actions/gitversion/[email protected].15
8284
with:
8385
useConfigFile: true
8486

.github/workflows/release-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
env:
1414
solution-path: './src/NetCore.Utilities.Email.SendGrid.sln'
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0
1919

2020
- name: Ensure .NET Installed
21-
uses: actions/setup-dotnet@v1
21+
uses: actions/setup-dotnet@v3
2222
with:
2323
dotnet-version: 6.0.x
2424

@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Determine Version
2929
id: gitversion
30-
uses: gittools/actions/gitversion/[email protected].7
30+
uses: gittools/actions/gitversion/[email protected].15
3131
with:
3232
useConfigFile: true
3333

0 commit comments

Comments
 (0)