Skip to content

Commit bfa0e2f

Browse files
committed
CI: Modernize csharp-npgsql project
- Use CrateDB 4.8.3, 4.8.4, and nightly - Use most recent version of GHA recipes
1 parent 2273ecd commit bfa0e2f

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/tests-npgsql.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Npgsql Tests
22

33
on:
4+
5+
# Run job only on changes to specific directories.
46
push:
57
branches: [ main ]
68
paths:
@@ -9,10 +11,19 @@ on:
911
branches: [ main ]
1012
paths:
1113
- 'by-language/csharp-npgsql/**'
14+
15+
# Allow job to be triggered manually.
1216
workflow_dispatch:
17+
18+
# Run job each night after CrateDB nightly has been published.
1319
schedule:
1420
- cron: '0 2 * * *'
1521

22+
# Cancel in-progress jobs when pushing to the same branch.
23+
concurrency:
24+
cancel-in-progress: true
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
1627
defaults:
1728
run:
1829
shell: bash
@@ -28,9 +39,9 @@ jobs:
2839
matrix:
2940
os: [ubuntu-latest] # , macos-latest
3041
dotnet-version: ['3.1.x', '5.0.x'] # 6.0.0-preview.4
31-
cratedb-version: ['4.3.2', '4.4.3', '4.5.1', 'nightly']
42+
cratedb-version: ['4.8.3', '4.8.4', 'nightly']
3243
npgsql-version: ['5.0.5', '6.0.0-preview4']
33-
fail-fast: true
44+
fail-fast: false
3445

3546
# https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers
3647
services:
@@ -41,9 +52,10 @@ jobs:
4152
- 5432:5432
4253

4354
steps:
44-
- uses: actions/checkout@v2
55+
- name: Acquire sources
56+
uses: actions/checkout@v3
4557
- name: Set up .NET ${{ matrix.dotnet-version }}
46-
uses: actions/setup-dotnet@v1
58+
uses: actions/setup-dotnet@v3
4759
with:
4860
dotnet-version: ${{ matrix.dotnet-version }}
4961

@@ -67,6 +79,7 @@ jobs:
6779
6880
# https://github.com/codecov/codecov-action
6981
- name: Upload coverage results to Codecov
70-
uses: codecov/codecov-action@v2
82+
uses: codecov/codecov-action@v3
7183
with:
84+
flags: by-language/csharp-npgsql
7285
fail_ci_if_error: false

0 commit comments

Comments
 (0)