Skip to content

Commit 6873dcc

Browse files
committed
build: github actions and dependabot
1 parent c382bdf commit 6873dcc

3 files changed

Lines changed: 79 additions & 0 deletions

File tree

.github/dependabot.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "nuget"
5+
# Targeted directory, it will look for any csProj file recursively.
6+
directory: "/"
7+
schedule:
8+
interval: "monthly"
9+
groups:
10+
microsoft:
11+
patterns:
12+
- "Microsoft*"
13+
update-types:
14+
- "minor"
15+
- "patch"
16+
xunit:
17+
patterns:
18+
- "xunit*"
19+
update-types:
20+
- "minor"
21+
- "patch"
22+
testcontainers:
23+
patterns:
24+
- "Testcontainers*"
25+
update-types:
26+
- "minor"
27+
- "patch"
28+
commit-message:
29+
prefix: "Package Dependencies"
30+
# Temporarily disable PR limit, till initial dependency update goes through
31+
open-pull-requests-limit: 1000
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Integration Tests
2+
3+
on: [pull_request, workflow_dispatch]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
dotnet-version: ['8.0.x']
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
14+
uses: actions/setup-dotnet@v1.7.2
15+
with:
16+
dotnet-version: ${{ matrix.dotnet-version }}
17+
18+
- name: Install dependencies
19+
run: dotnet restore
20+
- name: Build
21+
run: dotnet build --configuration Release --no-restore
22+
- name: Test
23+
working-directory: QueryKit/tests/QueryKit.IntegrationTests
24+
run: dotnet test --no-restore --verbosity minimal
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Unit Tests
2+
3+
on: [pull_request, workflow_dispatch]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
dotnet-version: ['8.0.x']
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
14+
uses: actions/setup-dotnet@v1.7.2
15+
with:
16+
dotnet-version: ${{ matrix.dotnet-version }}
17+
18+
- name: Install dependencies
19+
run: dotnet restore
20+
- name: Build
21+
run: dotnet build --configuration Release --no-restore
22+
- name: Test
23+
working-directory: QueryKit/tests/QueryKit.UnitTests
24+
run: dotnet test --no-restore --verbosity minimal

0 commit comments

Comments
 (0)