Skip to content

Commit

Permalink
chore: upgrade nuke. Disable codecov tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kthompson committed May 31, 2024
1 parent a888f7f commit 2363d1e
Show file tree
Hide file tree
Showing 8 changed files with 154 additions and 140 deletions.
84 changes: 21 additions & 63 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,93 +22,51 @@ on:
- main

jobs:
windows-latest:
name: windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj') }}
- name: Run './build.cmd Test ReportCoverage Publish'
run: ./build.cmd Test ReportCoverage Publish
env:
CodecovToken: ${{ secrets.CODECOV_TOKEN }}
PublicNuGetApiKey: ${{ secrets.PUBLIC_NUGET_API_KEY }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
- uses: actions/upload-artifact@v1
with:
name: test-results
path: artifacts/test-results
- uses: actions/upload-artifact@v1
with:
name: coverage-report.zip
path: artifacts/reports/coverage-report.zip
- uses: actions/upload-artifact@v1
with:
name: packages
path: artifacts/packages
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj') }}
- name: Run './build.cmd Test ReportCoverage Publish'
run: ./build.cmd Test ReportCoverage Publish
- name: 'Run: Test'
run: ./build.cmd Test
env:
CodecovToken: ${{ secrets.CODECOV_TOKEN }}
PublicNuGetApiKey: ${{ secrets.PUBLIC_NUGET_API_KEY }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
- uses: actions/upload-artifact@v1
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
with:
name: test-results
path: artifacts/test-results
- uses: actions/upload-artifact@v1
with:
name: coverage-report.zip
path: artifacts/reports/coverage-report.zip
- uses: actions/upload-artifact@v1
with:
name: packages
path: artifacts/packages
macOS-latest:
name: macOS-latest
runs-on: macOS-latest
macos-latest:
name: macos-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj') }}
- name: Run './build.cmd Test ReportCoverage Publish'
run: ./build.cmd Test ReportCoverage Publish
- name: 'Run: Test'
run: ./build.cmd Test
env:
CodecovToken: ${{ secrets.CODECOV_TOKEN }}
PublicNuGetApiKey: ${{ secrets.PUBLIC_NUGET_API_KEY }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
- uses: actions/upload-artifact@v1
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
with:
name: test-results
path: artifacts/test-results
- uses: actions/upload-artifact@v1
with:
name: coverage-report.zip
path: artifacts/reports/coverage-report.zip
- uses: actions/upload-artifact@v1
with:
name: packages
path: artifacts/packages
75 changes: 36 additions & 39 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,86 +26,83 @@ jobs:
name: windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj') }}
- name: Run './build.cmd Test ReportCoverage Publish'
run: ./build.cmd Test ReportCoverage Publish
- name: 'Run: Test, ReportCoverage'
run: ./build.cmd Test ReportCoverage
env:
CodecovToken: ${{ secrets.CODECOV_TOKEN }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
- uses: actions/upload-artifact@v1
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
with:
name: test-results
path: artifacts/test-results
- uses: actions/upload-artifact@v1
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v3
with:
name: coverage-report.zip
path: artifacts/reports/coverage-report.zip
- uses: actions/upload-artifact@v1
with:
name: packages
path: artifacts/packages
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj') }}
- name: Run './build.cmd Test ReportCoverage Publish'
run: ./build.cmd Test ReportCoverage Publish
- name: 'Run: Test, ReportCoverage'
run: ./build.cmd Test ReportCoverage
env:
CodecovToken: ${{ secrets.CODECOV_TOKEN }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
- uses: actions/upload-artifact@v1
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
with:
name: test-results
path: artifacts/test-results
- uses: actions/upload-artifact@v1
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v3
with:
name: coverage-report.zip
path: artifacts/reports/coverage-report.zip
- uses: actions/upload-artifact@v1
with:
name: packages
path: artifacts/packages
macOS-latest:
name: macOS-latest
runs-on: macOS-latest
macos-latest:
name: macos-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Cache .nuke/temp, ~/.nuget/packages
uses: actions/cache@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj') }}
- name: Run './build.cmd Test ReportCoverage Publish'
run: ./build.cmd Test ReportCoverage Publish
- name: 'Run: Test, ReportCoverage'
run: ./build.cmd Test ReportCoverage
env:
CodecovToken: ${{ secrets.CODECOV_TOKEN }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
- uses: actions/upload-artifact@v1
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
with:
name: test-results
path: artifacts/test-results
- uses: actions/upload-artifact@v1
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v3
with:
name: coverage-report.zip
path: artifacts/reports/coverage-report.zip
- uses: actions/upload-artifact@v1
with:
name: packages
path: artifacts/packages
53 changes: 53 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# ------------------------------------------------------------------------------
# <auto-generated>
#
# This code was generated.
#
# - To turn off auto-generation set:
#
# [GitHubActions (AutoGenerate = false)]
#
# - To trigger manual generation invoke:
#
# nuke --generate-configuration GitHubActions_publish --host GitHubActions
#
# </auto-generated>
# ------------------------------------------------------------------------------

name: publish

on:
push:
branches:
- main

jobs:
windows-latest:
name: windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
uses: actions/cache@v3
with:
path: |
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('global.json', 'src/**/*.csproj') }}
- name: 'Run: Publish'
run: ./build.cmd Publish
env:
CodecovToken: ${{ secrets.CODECOV_TOKEN }}
PublicNuGetApiKey: ${{ secrets.PUBLIC_NUGET_API_KEY }}
- name: 'Publish: test-results'
uses: actions/upload-artifact@v3
with:
name: test-results
path: artifacts/test-results
- name: 'Publish: packages'
uses: actions/upload-artifact@v3
with:
name: packages
path: artifacts/packages
19 changes: 13 additions & 6 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Build Schema",
"$ref": "#/definitions/build",
"title": "Build Schema",
"definitions": {
"build": {
"type": "object",
"properties": {
"CodecovToken": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secret [profile]'"
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"Configuration": {
"type": "string",
Expand All @@ -32,6 +32,7 @@
"AppVeyor",
"AzurePipelines",
"Bamboo",
"Bitbucket",
"Bitrise",
"GitHubActions",
"GitLab",
Expand Down Expand Up @@ -70,7 +71,7 @@
},
"PublicNuGetApiKey": {
"type": "string",
"default": "Secrets must be entered via 'nuke :secret [profile]'"
"default": "Secrets must be entered via 'nuke :secrets [profile]'"
},
"Root": {
"type": "string",
Expand All @@ -84,13 +85,16 @@
"enum": [
"Clean",
"Compile",
"InstallGlobalTool",
"Pack",
"PackGlobalTool",
"Publish",
"ReportCoverage",
"ReportDuplicates",
"ReportIssues",
"Restore",
"Test"
"Test",
"UninstallGlobalTool"
]
}
},
Expand All @@ -106,13 +110,16 @@
"enum": [
"Clean",
"Compile",
"InstallGlobalTool",
"Pack",
"PackGlobalTool",
"Publish",
"ReportCoverage",
"ReportDuplicates",
"ReportIssues",
"Restore",
"Test"
"Test",
"UninstallGlobalTool"
]
}
},
Expand All @@ -129,4 +136,4 @@
}
}
}
}
}
2 changes: 2 additions & 0 deletions Panther.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
global.json = global.json
CHANGELOG.md = CHANGELOG.md
Directory.Build.props = Directory.Build.props
version.json = version.json
release.cmd = release.cmd
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{2C7EA852-0336-45D4-9AAA-D3A5D1F2F4AA}"
Expand Down
Loading

0 comments on commit 2363d1e

Please sign in to comment.