diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 999ee27..0a758a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/checkout@v2.0.0 - - 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