on:
  push:
    branches:
    - main
  pull_request:
    branches:
    - main

name: main
jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Install dependencies
        run: dotnet restore

      - name: Build
        run: dotnet build --no-restore --configuration Release

      - name: Test
        run: dotnet test --no-restore --verbosity normal

on:
  push:
    branches:
    - main
  pull_request:
    branches:
    - main

name: main
jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Install dependencies
        run: dotnet restore LineBot.sln

      - name: Build
        run: dotnet build LineBot.sln --no-restore --configuration Release

      - name: Test
        run: dotnet test LineBot.sln --no-restore --verbosity normal

Include solution file in the commands.
Include solution file in the commands.
