|
1 | 1 | name: Npgsql Tests
|
2 | 2 |
|
3 | 3 | on:
|
| 4 | + |
| 5 | + # Run job only on changes to specific directories. |
4 | 6 | push:
|
5 | 7 | branches: [ main ]
|
6 | 8 | paths:
|
|
9 | 11 | branches: [ main ]
|
10 | 12 | paths:
|
11 | 13 | - 'by-language/csharp-npgsql/**'
|
| 14 | + |
| 15 | + # Allow job to be triggered manually. |
12 | 16 | workflow_dispatch:
|
| 17 | + |
| 18 | + # Run job each night after CrateDB nightly has been published. |
13 | 19 | schedule:
|
14 | 20 | - cron: '0 2 * * *'
|
15 | 21 |
|
| 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 | + |
16 | 27 | defaults:
|
17 | 28 | run:
|
18 | 29 | shell: bash
|
|
28 | 39 | matrix:
|
29 | 40 | os: [ubuntu-latest] # , macos-latest
|
30 | 41 | 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'] |
32 | 43 | npgsql-version: ['5.0.5', '6.0.0-preview4']
|
33 |
| - fail-fast: true |
| 44 | + fail-fast: false |
34 | 45 |
|
35 | 46 | # https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers
|
36 | 47 | services:
|
|
41 | 52 | - 5432:5432
|
42 | 53 |
|
43 | 54 | steps:
|
44 |
| - - uses: actions/checkout@v2 |
| 55 | + - name: Acquire sources |
| 56 | + uses: actions/checkout@v3 |
45 | 57 | - name: Set up .NET ${{ matrix.dotnet-version }}
|
46 |
| - uses: actions/setup-dotnet@v1 |
| 58 | + uses: actions/setup-dotnet@v3 |
47 | 59 | with:
|
48 | 60 | dotnet-version: ${{ matrix.dotnet-version }}
|
49 | 61 |
|
|
67 | 79 |
|
68 | 80 | # https://github.com/codecov/codecov-action
|
69 | 81 | - name: Upload coverage results to Codecov
|
70 |
| - uses: codecov/codecov-action@v2 |
| 82 | + uses: codecov/codecov-action@v3 |
71 | 83 | with:
|
| 84 | + flags: by-language/csharp-npgsql |
72 | 85 | fail_ci_if_error: false
|
0 commit comments