tomas/.github/workflows/dotnet.yml
Tony Bark 5888771e20 Removed nonexisting flag in workflow
- Moved shell instance as a global field
2023-01-07 14:47:52 -05:00

49 lines
No EOL
1.2 KiB
YAML

name: .NET
on:
schedule:
- cron: "0 0 * * 0"
push:
branches: [main, develop, "feature/**", "release/**"]
pull_request:
branches: [main, develop, "feature/**", "release/**"]
jobs:
build:
timeout-minutes: 15
continue-on-error: true
runs-on: ${{ matrix.os }}
strategy:
matrix:
dotnet: ["6.0.x"]
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Install dependencies
run: dotnet restore src/Tomas.Terminal
- name: Build
run: dotnet build src/Tomas.Terminal -c Release --no-restore --nologo
test:
timeout-minutes: 15
continue-on-error: true
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: ["6.0.x"]
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Install test dependencies
run: dotnet restore src/Tomas.Tests
- name: Test
run: dotnet test src --no-restore --nologo