Large update to base component and Test.App #131
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: 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: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: pwsh | |
steps: | |
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- run: echo "π‘ The ${{ github.repository }} repository has been cloned to the runner." | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- name: Restore Dotnet Tools | |
run: dotnet tool restore | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build BlazorStateAnalyzer | |
run: | | |
cd ${{ github.workspace }}/Source/BlazorStateAnalyzer/ | |
dotnet clean --configuration Debug | |
dotnet build --configuration Debug | |
- name: Build and Pack BlazorState | |
run: | | |
cd ${{ github.workspace }}/Source/BlazorState/ | |
dotnet clean --configuration Debug | |
dotnet build --configuration Debug | |
dotnet pack --configuration Debug | |
- name: Build and Pack TimeWarp.State.Middleware | |
run: | | |
cd ${{ github.workspace }}/Source/TimeWarp.State.Middleware/ | |
dotnet clean --configuration Debug | |
dotnet build --configuration Debug | |
dotnet pack --configuration Debug | |
# - name: Client.Integration.Tests | |
# run: | | |
# cd Tests/Client.Integration.Tests/ | |
# dotnet restore | |
# dotnet fixie --configuration Debug | |
# | |
# - name: Server.Integration.Tests | |
# run: | | |
# cd Tests/Server.Integration.Tests/ | |
# dotnet restore | |
# dotnet fixie --configuration Debug | |
- name: BlazorStateAnalyzer.Tests | |
run: | | |
cd Tests/BlazorStateAnalyzer.Tests/ | |
dotnet restore | |
dotnet fixie --configuration Debug | |
- run: echo "π This job's status is ${{ job.status }}." |