Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 2, 2021
1 parent 308ea61 commit d627662
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
name: Build Server

on:
pull_request: {}
push:
paths:
- 'Dockerfile'
- './api/MyApp.sln'
on: [push]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/[email protected]
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
include-prerelease: true
- run: dotnet build ./api
- run: dotnet test ./api/MyApp.Tests
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
include-prerelease: true
- name: Build
run: dotnet build ./api
- name: Test
run: dotnet test ./api/MyApp.Tests

0 comments on commit d627662

Please sign in to comment.