Fix indents in CI YAML

This commit is contained in:
Daniel J. Summers 2024-03-23 21:06:49 -04:00
parent 5fc3d11454
commit 2439d017ef

View File

@ -1,9 +1,11 @@
name: Continuous Integration name: Continuous Integration
on: on:
push: push:
branches: [ "main" ] branches:
- main
pull_request: pull_request:
branches: [ "main" ] branches:
- main
workflow_dispatch: workflow_dispatch:
env: env:
MWL_TEST_RETHINK_URI: rethinkdb://localhost/mwl_test MWL_TEST_RETHINK_URI: rethinkdb://localhost/mwl_test
@ -15,9 +17,9 @@ jobs:
strategy: strategy:
matrix: matrix:
dotnet-version: dotnet-version:
- "6.0" - "6.0"
- "7.0" - "7.0"
- "8.0" - "8.0"
services: services:
postgres: postgres:
@ -34,22 +36,21 @@ jobs:
rethink: rethink:
image: rethinkdb:latest image: rethinkdb:latest
ports: ports:
- 28015:28015 - 28015:28015
- 29015:29015
steps: steps:
- name: Check Out Code - name: Check Out Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup .NET Core SDK - name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4.0.0 uses: actions/setup-dotnet@v4.0.0
with: with:
dotnet-version: 8.x dotnet-version: 8.x
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore src/MyWebLog.sln run: dotnet restore src/MyWebLog.sln
- name: Build (${{ matrix.dotnet-version }}) - name: Build (${{ matrix.dotnet-version }})
run: dotnet build src/MyWebLog.sln -f net${{ matrix.dotnet-version }} run: dotnet build src/MyWebLog.sln -f net${{ matrix.dotnet-version }}
- name: Test (${{ matrix.dotnet-version }}) - name: Test (${{ matrix.dotnet-version }})
run: cd src/MyWebLog.Tests; dotnet run -f net${{ matrix.dotnet-version }} run: cd src/MyWebLog.Tests; dotnet run -f net${{ matrix.dotnet-version }}
publish: publish:
name: Publish Packages name: Publish Packages