-
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.41 KB
/
scheduledjobs_ci.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
41
42
43
44
45
46
47
48
49
50
name: ScheduledJobs CI
on:
workflow_dispatch:
push:
branches: [master]
paths:
- src/Pilgaard.ScheduledJobs/**
- tests/Pilgaard.ScheduledJobs.Tests/**
- tests/ApiApprovalTests.cs
- .github/workflows/scheduledjobs_ci.yml
- Directory.Build.props
pull_request:
branches: [master]
paths:
- src/Pilgaard.ScheduledJobs/**
- tests/Pilgaard.ScheduledJobs.Tests/**
- tests/ApiApprovalTests.cs
- .github/workflows/scheduledjobs_ci.yml
- Directory.Build.props
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: "7.0.x"
- name: Restore NuGet packages
run: |
dotnet restore ./src/Pilgaard.ScheduledJobs/Pilgaard.ScheduledJobs.csproj &&
dotnet restore ./tests/Pilgaard.ScheduledJobs.Tests/Pilgaard.ScheduledJobs.Tests.csproj
- name: Build
run: |
dotnet build ./src/Pilgaard.ScheduledJobs/Pilgaard.ScheduledJobs.csproj --no-restore &&
dotnet build ./tests/Pilgaard.ScheduledJobs.Tests/Pilgaard.ScheduledJobs.Tests.csproj --no-restore
- name: Run Test
run: dotnet test ./tests/Pilgaard.ScheduledJobs.Tests/Pilgaard.ScheduledJobs.Tests.csproj --no-build --no-restore