mirror of
https://github.com/tonytins/tomas.git
synced 2025-03-15 12:21:23 +00:00
49 lines
No EOL
1.2 KiB
YAML
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 |