Only install 1 version of dotnet per runner

This commit is contained in:
jvyden 2021-10-16 20:15:15 -04:00
commit 134d96f5b3
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -7,38 +7,33 @@ name: Continuous Integration
jobs: jobs:
test: test:
name: Test name: Test
runs-on: ${{matrix.os.fullname}} runs-on: ${{matrix.os.fullName}}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: os:
- { prettyname: Windows, fullname: windows-latest } - { prettyName: Windows, fullName: windows-latest }
- { prettyname: macOS, fullname: macos-latest } - { prettyName: macOS, fullName: macos-latest }
- { prettyname: Linux, fullname: ubuntu-latest } - { prettyName: Linux, fullName: ubuntu-latest }
dotnetVersion: dotnetVersion:
- { prettyname: .NET 6.0 Preview, fullname: 6.0.x } - { prettyName: .NET 6.0 Preview, fullName: 6.0.x }
- { prettyname: .NET 5.0, fullname: 5.0.x } - { prettyName: .NET 5.0, fullName: 5.0.x }
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install .NET 5.0 - name: Install ${{matrix.dotnetVersion.prettyName}}
uses: actions/setup-dotnet@v1 uses: actions/setup-dotnet@v1
with: with:
dotnet-version: "5.0.x" dotnet-version: "${{matrix.dotnetVersion.fullName}}"
- name: Install .NET 6.0 Preview
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
include-prerelease: true include-prerelease: true
- name: Compile - name: Compile
run: dotnet build -c Debug run: dotnet build -c Debug
- name: Test - name: Test
run: --logger "trx;LogFileName=TestResults-${{matrix.os.prettyname}}-${{matrix.threadingMode}}.trx" run: --logger "trx;LogFileName=TestResults-${{matrix.os.prettyName}}-${{matrix.threadingMode}}.trx"
# Attempt to upload results even if test fails. # Attempt to upload results even if test fails.
@ -47,5 +42,5 @@ jobs:
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: ${{ always() }} if: ${{ always() }}
with: with:
name: lighthouse-test-results-${{matrix.os.prettyname}}-${{matrix.threadingMode}} name: lighthouse-test-results-${{matrix.os.prettyName}}-dotnet${{matrix.dotnetVersion.fullName}}
path: ${{github.workspace}}/TestResults/TestResults-${{matrix.os.prettyname}}-${{matrix.threadingMode}}.trx path: ${{github.workspace}}/TestResults/TestResults-${{matrix.os.prettyName}}-dotnet${{matrix.dotnetVersion.fullName}}trx