Skip to content

Update GitHub Actions, keep workflows alive, rearrange README.md header #3

Update GitHub Actions, keep workflows alive, rearrange README.md header

Update GitHub Actions, keep workflows alive, rearrange README.md header #3

Workflow file for this run

name: .NET SDK CI
on:
schedule:
- cron: '0 0 * * *'
push:
branches: [ master ]
paths-ignore:
- '**.md'
- 'appveyor*'
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
build-test-netframework:
strategy:
matrix:
dotnet-version: [
{rt: "4.5", tfm: net45},
{rt: "4.6.1", tfm: net461},
]
name: Build & test on .NET ${{ matrix.dotnet-version.rt }}
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Build
run: |
dotnet build src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj -c Release -f ${{ matrix.dotnet-version.tfm }}
- name: Test
run: |
dotnet test src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj -c Release -f ${{ matrix.dotnet-version.tfm }} --no-build
build-test-netcore:
strategy:
matrix:
dotnet-version: [
{rt: "3.1.x", sdk: "3.1.100", tfm: netcoreapp3.1},
{rt: "6.0.x", sdk: "6.0.100", tfm: net6.0},
{rt: "8.0.x", sdk: "8.0.100", tfm: net8.0}
]
os: [ubuntu-latest, windows-latest, macOS-latest]
exclude:
- dotnet-version: {rt: "3.1.x", sdk: "3.1.100", tfm: netcoreapp3.1}
os: ubuntu-latest
- dotnet-version: {rt: "3.1.x", sdk: "3.1.100", tfm: netcoreapp3.1}
os: macOS-latest
name: Build & test on .NET ${{ matrix.dotnet-version.rt }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
${{ matrix.dotnet-version.rt }}
8.0.x
- name: Build
run: |
dotnet build src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj -c Release -f ${{ matrix.dotnet-version.tfm }}
- name: Pin dotnet SDK version
run: |
dotnet new global.json --sdk-version ${{ matrix.dotnet-version.rt }} --roll-forward latestFeature
- name: Test
run: |
dotnet test src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj -c Release -f ${{ matrix.dotnet-version.tfm }} --no-build