Bump dotnet/aspnet in /src/WebApi (#36) #48
This file contains hidden or 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
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| name: build | |
| on: | |
| # Allow running the workflow manually from the GitHub UI | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| # Run the workflow when pushing to the main branch | |
| - main | |
| paths: | |
| # Only run when code changes | |
| - "src/**" | |
| - "Directory.Build.props" | |
| - "Directory.Packages.props" | |
| - "FunQL.Playground.sln" | |
| - "global.json" | |
| pull_request: | |
| branches: | |
| # Run the workflow for all pull requests for the main branch | |
| - main | |
| paths: | |
| # Only run when code changes | |
| - "src/**" | |
| - "Directory.Build.props" | |
| - "Directory.Packages.props" | |
| - "FunQL.Playground.sln" | |
| - "global.json" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET (global.json) | |
| uses: actions/setup-dotnet@v5 | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build -c Release --no-restore | |
| - name: Test | |
| run: dotnet test -c Release --no-build --verbosity normal |