Skip to content

#42: update workflows to build all the projects except the web #21

#42: update workflows to build all the projects except the web

#42: update workflows to build all the projects except the web #21

name: .NET SwiftParcel Microservice CI/CD
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:

Check failure on line 10 in .github/workflows/netMicroservices.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/netMicroservices.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
project: [
'SwiftParcel.Services.Availability/src/SwiftParcel.Services.Availability.Api/SwiftParcel.Services.Availability.Api/',
'SwiftParcel.Services.Couriers/src/SwiftParcel.Services.Couriers.Api/SwiftParcel.Services.Couriers.Api',
'SwiftParcel.Services.Customers/src/SwiftParcel.Services.Customers.Api/SwiftParcel.Services.Customers.Api',
'SwiftParcel.Services.Orders/src/SwiftParcel.Services.Orders.Api/SwiftParcel.Services.Orders.Api',
'SwiftParcel.Services.OrdersCreator/src/SwiftParcel.Services.OrdersCreator',
'SwiftParcel.Services.Parcels/src/SwiftParcel.Services.Parcels.Api/SwiftParcel.Services.Parcels.Api',
'SwifttParcel.Services.Identity/src/SwiftParcel.Services.Identity.Api/SwiftParcel.Services.Identity.Api'
'SwiftParcel.Services.Deliveries/src/SwiftParcel.Services.Deliveries.Api/SwiftParcel.Services.Deliveries'
'SwiftParcel.API.Gateway/src/SwiftParcel.API.Gateway'
]
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Build and Test ${{ matrix.project }}
run: |
cd ${{ matrix.project }}
dotnet restore
dotnet build --no-restore
# dotnet test --no-build --if-present --verbosity normal