Skip to content

chore: init

chore: init #1

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: |
dotnet restore src/ApiGateway/ApiGateway.Api/ApiGateway.Api.csproj
dotnet restore src/Authentication/Authentication.sln
dotnet restore src/Notification/Notification.sln
dotnet restore src/Transaction/Transaction.sln
dotnet restore src/User/User.sln
dotnet restore src/Verification/Verification.sln
dotnet restore src/Wallet/Wallet.sln
- name: Build projects
run: |
dotnet build src/ApiGateway/ApiGateway.Api/ApiGateway.Api.csproj --configuration Release
dotnet build src/Authentication/Authentication.sln --configuration Release
dotnet build src/Notification/Notification.sln --configuration Release
dotnet build src/Transaction/Transaction.sln --configuration Release
dotnet build src/User/User.sln --configuration Release
dotnet build src/Verification/Verification.sln --configuration Release
dotnet build src/Wallet/Wallet.sln --configuration Release
- name: Run tests
run: |
dotnet test src/Authentication/Authentication.Tests/Authentication.Tests.csproj
dotnet test src/Notification/Notification.Tests/Notification.Tests.csproj
dotnet test src/Transaction/Transaction.Tests/Transaction.Tests.csproj
dotnet test src/User/User.Tests/User.Tests.csproj
dotnet test src/Verification/Verification.Tests/Verification.Tests.csproj
dotnet test src/Wallet/Wallet.Tests/Wallet.Tests.csproj