Skip to content

Fixing spaces in YML #4

Fixing spaces in YML

Fixing spaces in YML #4

Workflow file for this run

name: Build and Test
on:
push:
branches:
- 'main'
- 'dev'
- 'v*'
pull_request:
branches:
- 'main'
- 'dev'
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

Check failure on line 25 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
- name: Install libssl1.1
run: |
sudo apt-get update
sudo apt-get install -y libssl1.1 || \
(wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.1/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb && \
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb)
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: |
dotnet restore src/BlazorWebFormsComponents/BlazorWebFormsComponents.csproj
dotnet restore src/BlazorWebFormsComponents.Test/BlazorWebFormsComponents.Test.csproj
dotnet restore samples/AfterBlazorServerSide/AfterBlazorServerSide.csproj
dotnet restore samples/AfterBlazorClientSide/AfterBlazorClientSide.csproj
- name: Build library
run: dotnet build src/BlazorWebFormsComponents/BlazorWebFormsComponents.csproj --configuration Release --no-restore
- name: Build test project
run: dotnet build src/BlazorWebFormsComponents.Test/BlazorWebFormsComponents.Test.csproj --configuration Release --no-restore
- name: Build server-side sample
run: dotnet build samples/AfterBlazorServerSide/AfterBlazorServerSide.csproj --configuration Release --no-restore
- name: Build client-side sample
run: dotnet build samples/AfterBlazorClientSide/AfterBlazorClientSide.csproj --configuration Release --no-restore
- name: Run tests
run: dotnet test src/BlazorWebFormsComponents.Test/BlazorWebFormsComponents.Test.csproj --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: src/BlazorWebFormsComponents.Test/TestResults/*.trx
- name: Publish test results
uses: dorny/test-reporter@v2
if: always()
with:
name: Unit Test Results
path: src/BlazorWebFormsComponents.Test/TestResults/*.trx
reporter: dotnet-trx
fail-on-error: true