Update workflows see if we can get beta deployed #7
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: Build and Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
env: | |
DOTNET_NOLOGO: true # Disable the .NET logo in the console output | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience to skip caching NuGet packages and speed up the build | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
NUGET_AUTH_TOKEN: ${{secrets.PUBLISH_TO_NUGET_ORG}} # <-- This is the token for the GitHub account you want to use. | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
project: | |
- name: TimeWarp.OptionsValidation | |
path: source/TimeWarp.OptionsValidation/ | |
testPath: tests/TimeWarp.OptionsValidation.Tests/ | |
steps: | |
- name: Print Job Info | |
run: | | |
echo "🎉 Job triggered by a ${{ github.event_name }} event." | |
echo "🐧 Running on a ${{ runner.os }} server hosted by GitHub." | |
echo "🔎 Branch name: ${{ github.ref }}, repository: ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build ${{ matrix.project.name }} | |
run: | | |
cd ${{ matrix.project.path }} | |
dotnet build --configuration Debug | |
shell: pwsh | |
- name: Test ${{ matrix.project.name }} | |
run: | | |
cd ${{ matrix.project.testPath }} | |
dotnet tool restore | |
dotnet restore | |
dotnet fixie --configuration Debug | |
shell: pwsh | |
- name: Print Job Status | |
run: | | |
echo "🍏 Job status: ${{ job.status }}." |