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
8 changes: 4 additions & 4 deletions .github/workflows/build-cross-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
name: macos-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: 'Cache: .fallout/temp, ~/.nuget/packages'
Expand All @@ -49,7 +49,7 @@ jobs:
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
Expand All @@ -60,7 +60,7 @@ jobs:
name: windows-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: 'Cache: .fallout/temp, ~/.nuget/packages'
Expand All @@ -71,7 +71,7 @@ jobs:
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
Expand All @@ -49,7 +49,7 @@ jobs:
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-packages-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
name: github-packages
url: https://github.com/Fallout-build/Fallout/packages
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0 # Nerdbank.GitVersioning needs full history
- name: 'Cache: .fallout/temp, ~/.nuget/packages'
Expand All @@ -62,7 +62,7 @@ jobs:
restore-keys: |
${{ runner.os }}-preview-
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-packages-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: 'Verify tag is reachable from a production branch'
Expand All @@ -97,7 +97,7 @@ jobs:
# Run when validate-ref succeeded (tag push) OR was skipped (workflow_dispatch).
if: always() && (needs.validate-ref.result == 'success' || needs.validate-ref.result == 'skipped')
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
ref: ${{ inputs.tag || github.ref }}
fetch-depth: 0 # Nerdbank.GitVersioning needs full history
Expand All @@ -111,7 +111,7 @@ jobs:
restore-keys: |
${{ runner.os }}-release-
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
url: https://www.nuget.org/profiles/Fallout
steps:
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
dotnet-version: '10.x'
- name: 'Download: package artifacts'
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
url: https://github.com/Fallout-build/Fallout/packages
steps:
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
dotnet-version: '10.x'
- name: 'Download: package artifacts'
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
name: github-releases
url: https://github.com/Fallout-build/Fallout/releases
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: 'Download: package artifacts'
uses: actions/download-artifact@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions docs/05-cicd/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
Expand Down Expand Up @@ -121,7 +121,7 @@ Target Pack => _ => _
<summary>Generated output</summary>

```yaml title=".github/workflows/continuous.yml"
- uses: actions/upload-artifact@v5
- uses: actions/upload-artifact@v7
with:
name: packages
path: output/packages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class GitHubActionsArtifactStep : GitHubActionsStep
public override void Write(CustomFileWriter writer)
{
writer.WriteLine("- name: " + $"Publish: {Name}".SingleQuoteYaml());
writer.WriteLine(" uses: actions/upload-artifact@v5");
writer.WriteLine(" uses: actions/upload-artifact@v7");

using (writer.Indent())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class GitHubActionsCheckoutStep : GitHubActionsStep

public override void Write(CustomFileWriter writer)
{
writer.WriteLine("- uses: actions/checkout@v6");
writer.WriteLine("- uses: actions/checkout@v7");

if (Submodules.HasValue || Lfs.HasValue || FetchDepth.HasValue || Progress.HasValue ||
!Filter.IsNullOrWhiteSpace() || !Ref.IsNullOrWhiteSpace() || CheckoutWith.Length > 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public override void Write(CustomFileWriter writer)
writer.WriteLine("- name: 'Setup: .NET SDK'");
using (writer.Indent())
{
writer.WriteLine("uses: actions/setup-dotnet@v4");
writer.WriteLine("uses: actions/setup-dotnet@v6");
writer.WriteLine("with:");
using (writer.Indent())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.head_ref }}
Expand All @@ -38,25 +38,25 @@ jobs:
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
run: dotnet tool restore
- name: 'Run: Test'
run: dotnet fallout Test
- name: 'Publish: src'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: coverage-report.zip
path: output/coverage-report.zip
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
path: src
- name: 'Cache: .fallout/temp, ~/.nuget/packages'
Expand All @@ -34,25 +34,25 @@ jobs:
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
run: dotnet tool restore
- name: 'Run: Test'
run: dotnet fallout Test
- name: 'Publish: src'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: coverage-report.zip
path: output/coverage-report.zip
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
sparse-checkout: |
src
Expand All @@ -36,25 +36,25 @@ jobs:
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
run: dotnet tool restore
- name: 'Run: Test'
run: dotnet fallout Test
- name: 'Publish: src'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: coverage-report.zip
path: output/coverage-report.zip
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
token: ${{ secrets.CI_PAT }}
Expand All @@ -37,25 +37,25 @@ jobs:
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
run: dotnet tool restore
- name: 'Run: Test'
run: dotnet fallout Test
- name: 'Publish: src'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: coverage-report.zip
path: output/coverage-report.zip
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: 'Cache: .fallout/temp, ~/.nuget/packages'
uses: actions/cache@v4
with:
Expand All @@ -44,25 +44,25 @@ jobs:
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: 'Setup: .NET SDK'
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v6
with:
global-json-file: global.json
- name: 'Restore: dotnet tools'
run: dotnet tool restore
- name: 'Run: Test'
run: dotnet fallout Test
- name: 'Publish: src'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: src
path: src
- name: 'Publish: test-results'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: test-results
path: output/test-results
- name: 'Publish: coverage-report.zip'
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: coverage-report.zip
path: output/coverage-report.zip
Loading
Loading