-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 948 Bytes
/
ci.yml
File metadata and controls
37 lines (29 loc) · 948 Bytes
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
name: "Continuous Integration"
on:
push:
branches:
- "**" # matches every branch
- "!main" # excludes main
concurrency:
group: nuget-${{ github.ref }}
cancel-in-progress: true
env:
PROJECT_PATH: "src/Dapper.DDD.Repository/Dapper.DDD.Repository.csproj"
SOLUTION_PATH: "Dapper.DDD.Repository.sln"
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output
NUGET_SOURCE_URL: "https://api.nuget.org/v3/index.json"
jobs:
test:
name: "test"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install dotnet"
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: "Restore packages"
run: dotnet restore ${{ env.SOLUTION_PATH }}
- name: Test
run: dotnet test ${{ env.SOLUTION_PATH }}