Skip to content

Update the github action, do not try to get lastest package version f… #22

Update the github action, do not try to get lastest package version f…

Update the github action, do not try to get lastest package version f… #22

Workflow file for this run

name: Test
on:
push:
branches:
- master
- legacy/*
paths:
- 'src/**'
- 'test/**'
- '.github/workflows/**'
env:
SOLUTION: DependencyInjection.StaticAccessor.sln
jobs:
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
- name: Restore NuGets
run: dotnet restore ${{ env.SOLUTION }}
- name: Test in RELEASE
run: dotnet test --configuration Release ${{ env.SOLUTION }}
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
- name: Restore NuGets
run: dotnet restore ${{ env.SOLUTION }}
- name: Test in RELEASE with netcoreapp3.1
run: dotnet test --configuration Release --framework netcoreapp3.1 ${{ env.SOLUTION }}