-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 907 Bytes
/
dotnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Pull Request Validation
on:
pull_request:
branches: [ "main" ]
jobs:
build:
name: "Build Solution"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Remove dcproj
run: dotnet sln BurgerLink.sln remove docker-compose.dcproj
working-directory: ./src
- name: Restore dependencies
run: dotnet restore BurgerLink.sln
working-directory: ./src
- name: Build
run: dotnet build BurgerLink.sln --no-restore
working-directory: ./src
docker-build:
name: "Docker Compose Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker Build
run: docker compose build --no-cache
working-directory: ./src