2021-03-31 00:10:38 -04:00
|
|
|
name: .NET
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * 0"
|
|
|
|
push:
|
2023-01-07 12:39:07 -05:00
|
|
|
branches: [main, develop, "feature/**", "release/**"]
|
2021-03-31 00:10:38 -04:00
|
|
|
pull_request:
|
2023-01-07 12:39:07 -05:00
|
|
|
branches: [main, develop, "feature/**", "release/**"]
|
2021-03-31 00:10:38 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-01-06 19:09:39 -05:00
|
|
|
timeout-minutes: 15
|
|
|
|
continue-on-error: true
|
2021-03-31 00:10:38 -04:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-01-06 19:09:39 -05:00
|
|
|
dotnet: ["6.0.x"]
|
2021-03-31 00:10:38 -04:00
|
|
|
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
|
2023-01-07 14:47:52 -05:00
|
|
|
run: dotnet build src/Tomas.Terminal -c Release --no-restore --nologo
|
2023-01-07 14:31:09 -05:00
|
|
|
|
|
|
|
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
|
2023-01-07 14:47:52 -05:00
|
|
|
run: dotnet restore src/Tomas.Tests
|
2023-01-07 14:31:09 -05:00
|
|
|
- name: Test
|
2023-01-07 14:47:52 -05:00
|
|
|
run: dotnet test src --no-restore --nologo
|