tomas/.github/workflows/dotnet.yml

49 lines
1.2 KiB
YAML
Raw Permalink Normal View History

name: .NET
on:
schedule:
- cron: "0 0 * * 0"
push:
branches: [main, develop, "feature/**", "release/**"]
pull_request:
branches: [main, develop, "feature/**", "release/**"]
jobs:
build:
2023-01-06 19:09:39 -05:00
timeout-minutes: 15
continue-on-error: true
runs-on: ${{ matrix.os }}
strategy:
matrix:
2023-01-06 19:09:39 -05:00
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