Merge pull request #1035 from adamralph/dependabot/github_actions/act… #1641
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [main, release-*] | |
pull_request: | |
permissions: read-all | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# old macOS, latest LTS | |
- job: | |
os: macos-12 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.303" | |
sdk-major-minor: "8.0" | |
# old macOS, latest LTS | |
- job: | |
os: macos-13 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.303" | |
sdk-major-minor: "8.0" | |
# current macOS, latest LTS and latest | |
- job: | |
os: macos-14 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.303" | |
sdk-major-minor: "8.0" | |
# old Linux, latest LTS | |
- job: | |
os: ubuntu-20.04 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.303" | |
sdk-major-minor: "8.0" | |
# current Linux, all | |
- job: | |
os: ubuntu-22.04 | |
tests: | |
framework: net6.0 | |
sdk: "6.0.424" | |
sdk-major-minor: "6.0" | |
- job: | |
os: ubuntu-22.04 | |
upload: true | |
tests: | |
framework: net8.0 | |
sdk: "8.0.303" | |
sdk-major-minor: "8.0" | |
# old Windows, latest LTS | |
- job: | |
os: windows-2019 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.303" | |
sdk-major-minor: "8.0" | |
# current Windows, latest LTS and latest | |
- job: | |
os: windows-2022 | |
tests: | |
framework: net8.0 | |
sdk: "8.0.303" | |
sdk-major-minor: "8.0" | |
name: ${{ matrix.job.os }}-sdk-${{ matrix.tests.sdk-major-minor }} | |
runs-on: ${{ matrix.job.os }} | |
steps: | |
- uses: actions/setup-dotnet@v4.0.1 | |
with: | |
dotnet-version: | | |
${{ matrix.tests.sdk }} | |
8.0.303 | |
- run: dotnet --info | |
- run: git --version | |
- uses: actions/checkout@v4.1.7 | |
- env: | |
CI_NUMBER: ${{ github.run_number }} | |
MINVER_VERSION: ${{ vars.MINVER_VERSION }} | |
MINVER_TESTS_SDK: ${{ matrix.tests.sdk }} | |
MINVER_TESTS_FRAMEWORK: ${{ matrix.tests.framework }} | |
run: ./build --verbose | |
- if: matrix.job.upload | |
uses: actions/upload-artifact@v4.3.6 | |
with: | |
name: NuGet packages | |
path: ./**/*.nupkg |