-
-
Notifications
You must be signed in to change notification settings - Fork 21
49 lines (40 loc) · 1.06 KB
/
Copy pathci.yml
File metadata and controls
49 lines (40 loc) · 1.06 KB
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
name: CI
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
dotnet-version: [ 8.0.x, 9.0.x , 10.0.x ]
name: Dotnet ${{ matrix.dotnet-version }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- name: Setup .NET
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Build
run: dotnet build --configuration Release
working-directory: ./src/RESTCountries.NET
- name: Run unit tests
run: dotnet test --configuration Release
working-directory: ./tests/RESTCountries.NET.Tests