Skip to content

ci(deps): Bump actions/cache from 5 to 6 #236

ci(deps): Bump actions/cache from 5 to 6

ci(deps): Bump actions/cache from 5 to 6 #236

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop, 'release-please--**' ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:
jobs:
build-and-test:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
dotnet-version: ['6.0.x', '8.0.x', '9.0.x', '10.0.x']
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Run tests
run: dotnet test --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage"
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.dotnet-version == '10.0.x'
uses: codecov/codecov-action@v6
with:
files: '**/coverage.cobertura.xml'
fail_ci_if_error: false
lint:
name: Code Quality
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Check formatting
run: dotnet format --verify-no-changes --no-restore
pack:
name: Pack NuGet
runs-on: ubuntu-latest
needs: [build-and-test, lint]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Pack
run: dotnet pack TriasDev.Templify/TriasDev.Templify.csproj --no-build --configuration Release --output ./artifacts
- name: Upload NuGet package artifact
uses: actions/upload-artifact@v7
with:
name: nuget-package
path: ./artifacts/*.nupkg
retention-days: 7