Skip to content

update shared nugets #34

update shared nugets

update shared nugets #34

Workflow file for this run

name: Build and Test Pull Requests
on:
pull_request:
branches:
- main
jobs:
build:
name: "Build and Test Pull Requests"
env:
ASPNETCORE_ENVIRONMENT: "Production"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Install NET 9
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: '9.0.x'
- name: Restore Nuget Packages
run: dotnet restore MobileConfiguration.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
- name: Build Code
run: dotnet build MobileConfiguration.sln --configuration Release
#- name: Run Unit Tests
# run: |
# echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
# dotnet test "TransactionProcessor.BusinessLogic.Tests\TransactionProcessor.BusinessLogic.Tests.csproj"
- name: Build Docker Image
run: docker build . --file MobileConfiguration/Dockerfile --tag mobileconfiguration:latest
#- name: Run Integration Tests
# run: dotnet test "TransactionProcessor.IntegrationTests\TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest
#- uses: actions/upload-artifact@v2
# if: ${{ failure() }}
# with:
# name: tracelogs
# path: /home/txnproc/trace/