feat: Target projects to .NET 8 #120
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request build | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
VERSION_TAG: experimental | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup dotnet environment | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8 | |
- name: Install dependencies | |
run: dotnet restore src | |
- name: Build solution | |
run: dotnet build src --configuration Release --no-restore | |
- name: Run unit tests | |
run: dotnet test src --no-restore | |
- name: Build Docker image for order-generator | |
uses: docker/build-push-action@v6 | |
with: | |
file: ./src/Scaler.Demo/OrderGenerator/Dockerfile | |
tags: cosmosdb-order-generator:${{ env.VERSION_TAG }} | |
- name: Build Docker image for order-processor | |
uses: docker/build-push-action@v6 | |
with: | |
file: ./src/Scaler.Demo/OrderProcessor/Dockerfile | |
tags: cosmosdb-order-processor:${{ env.VERSION_TAG }} | |
- name: Build Docker image for scaler | |
uses: docker/build-push-action@v6 | |
with: | |
file: ./src/Scaler/Dockerfile | |
tags: cosmosdb-scaler:${{ env.VERSION_TAG }} |