Skip to content

init

init #4

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 21, Col: 27): Unexpected value '6.0.x 8.0.x'
on:
push:
branches:
- master
- main
pull_request:
branches:
- '*'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: |
6.0.x
8.0.x
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore tools
run: dotnet tool restore
- name: Run Nuke CI
run: dotnet nuke CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ matrix.dotnet-version }}
path: artifacts/**/*.trx
retention-days: 7
- name: Upload packages
uses: actions/upload-artifact@v4
if: success() && matrix.dotnet-version == '8.0.x'
with:
name: packages
path: artifacts/packages/*.nupkg
retention-days: 7