Skip to content

Updating build

Updating build #2

Workflow file for this run

name: Build And Test
on: [push]
env:
BUILD_VERSION: 8.0.${{github.run_number}}
SOLUTION_FILE: "src/EcsR3.sln"
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v2
with:
dotnet-version: 9.0.x
- name: Build
run: dotnet restore ${{SOLUTION_FILE}}

Check failure on line 18 in .github/workflows/build-and-test.yml

View workflow run for this annotation

GitHub Actions / Build And Test

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-test.yml (Line: 18, Col: 14): Unrecognized named-value: 'SOLUTION_FILE'. Located at position 1 within expression: SOLUTION_FILE .github/workflows/build-and-test.yml (Line: 20, Col: 14): Unrecognized named-value: 'BUILD_VERSION'. Located at position 1 within expression: BUILD_VERSION
- name: Build
run: dotnet build --configuration Release -p:Version=${{BUILD_VERSION}} ${{SOLUTION_FILE}}
- name: Test
run: dotnet test --configuration Release --no-build ${{SOLUTION_FILE}}