Update .NET deployment action steps #225
Workflow file for this run
This file contains hidden or 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
# This action executes on every push to master (usually as a result of a PR) | |
# and commit to a branch that is a PR against master | |
# to ensure the code base is up to standards | |
# | |
# Expected Standards | |
# ----------------------------- | |
# 0 failed units | |
# 0 Build Errors, 0 Build Warnings | |
name: CI-CD | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
SLN_PATH: ./src/graphql-aspnet.sln | |
jobs: | |
build: | |
name: Sanity Build | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout Code | |
# --------------------------------------- | |
# Install .NET Versions | |
# --------------------------------------- | |
- uses: actions/setup-dotnet@v4 | |
name: Install .NET | |
with: | |
dotnet-version: | | |
8.x | |
9.x | |
# --------------------------------------- | |
# Configure the build environment | |
# --------------------------------------- | |
- name: Configure Build | |
run: ./build/configure-ci-build.ps1 | |
shell: pwsh | |
# --------------------------------------- | |
# Restore, Build and Test | |
# --------------------------------------- | |
- name: Nuget Restore | |
run: dotnet restore ${{ env.SLN_PATH }} | |
- name: Build Solution | |
run: dotnet build ${{ env.SLN_PATH }} --no-restore | |
- name: Test Solution | |
run: dotnet test ${{ env.SLN_PATH }} --no-restore |