Skip to content

Bump System.IO.Abstractions.TestingHelpers from 17.2.3 to 19.2.69 #509

Bump System.IO.Abstractions.TestingHelpers from 17.2.3 to 19.2.69

Bump System.IO.Abstractions.TestingHelpers from 17.2.3 to 19.2.69 #509

# Morgan Stanley makes this available to you under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
jobs:
build:
strategy:
matrix:
os: [windows-2022, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
6.0.x
- name: Restore dependencies
run: dotnet restore --locked-mode
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal -p:CollectCoverage=true -p:CoverletOutputFormat=opencover
- name: Upload Test Report to Codecov
uses: codecov/codecov-action@v3
with:
files: ./test/Crossroads.Test/coverage.opencover.xml, ./test/Crossroads.Launcher.Test/coverage.opencover.xml
flags: unittests
fail_ci_if_error: true
- name: Pack
run: dotnet pack ./src/Crossroads/Crossroads.csproj --no-build --configuration Release --output package
- name: Package published artifact
uses: actions/upload-artifact@v3
with:
name: package
path: package/*.nupkg
if-no-files-found: error