-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 946 Bytes
/
dev-test.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
# Builds and releases a new public version of evitaLab a puts it into `Releases` section of GitHub
name: Test dev
on:
workflow_dispatch:
push:
branches: ["dev"]
permissions:
contents: read
jobs:
build-and-release:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
timeout-minutes: 60 # Set the timeout to 60 minutes for this job
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.X' # setup dotnet 8
- name: Restore solution
run: dotnet restore ./EvitaDB.sln
- name: Build solution
run: dotnet build ./EvitaDB.sln --configuration Release --no-restore
- name: Run tests
run: dotnet test ./EvitaDB.sln --configuration Release --no-build