Skip to content

Commit 34f1c7c

Browse files
committed
ci: run on macos too
1 parent b4a8aab commit 34f1c7c

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/dotnet.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
name: .NET - Ubuntu
1+
name: .NET CI
22

33
on:
44
push:
55
branches: [ "next" ]
66
pull_request:
77
branches: [ "next" ]
88

9+
env:
10+
DOTNET_VERSION: '10.0.103'
11+
NODE_VERSION: '24'
12+
913
permissions:
1014
contents: read
1115
statuses: write
1216

1317
jobs:
1418
build-and-test:
15-
runs-on: ubuntu-latest
19+
runs-on: ${{ matrix.os }}
1620
strategy:
1721
matrix:
18-
dotnet-version: ['10.0.100']
22+
os: [ubuntu-latest, macos-latest]
1923

2024
steps:
2125
- name: Checkout repository
@@ -24,12 +28,12 @@ jobs:
2428
- name: Setup .NET
2529
uses: actions/setup-dotnet@v4
2630
with:
27-
dotnet-version: ${{ matrix.dotnet-version }}
31+
dotnet-version: ${{ env.DOTNET_VERSION }}
2832

2933
- name: Setup Node.js
3034
uses: actions/setup-node@v3
3135
with:
32-
node-version: '22'
36+
node-version: ${{ env.NODE_VERSION }}
3337

3438
- name: Restore dependencies
3539
run: dotnet restore src/FastClonerCi.slnf
@@ -45,8 +49,8 @@ jobs:
4549
uses: Sibz/github-status-action@v1
4650
with:
4751
authToken: ${{secrets.GITHUB_TOKEN}}
48-
context: 'Tests'
49-
description: "The tests ${{ job.status == 'success' && 'passed' || 'failed' }}"
52+
context: "Tests (${{ matrix.os }})"
53+
description: "The tests on ${{ matrix.os }} ${{ job.status == 'success' && 'passed' || 'failed' }}"
5054
state: ${{ job.status == 'success' && 'success' || 'failure' }}
5155
sha: ${{ github.event.pull_request.head.sha || github.sha }}
5256
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
@@ -61,12 +65,12 @@ jobs:
6165
- name: Setup .NET
6266
uses: actions/setup-dotnet@v4
6367
with:
64-
dotnet-version: '10.0.100'
68+
dotnet-version: ${{ env.DOTNET_VERSION }}
6569

6670
- name: Setup Node.js
6771
uses: actions/setup-node@v3
6872
with:
69-
node-version: '22'
73+
node-version: ${{ env.NODE_VERSION }}
7074

7175
- name: Build FastCloner for netstandard2.0
7276
run: dotnet build src/FastCloner/ --framework netstandard2.0
@@ -92,12 +96,12 @@ jobs:
9296
- name: Setup .NET Framework
9397
uses: actions/setup-dotnet@v4
9498
with:
95-
dotnet-version: '10.0.100'
99+
dotnet-version: ${{ env.DOTNET_VERSION }}
96100

97101
- name: Setup Node.js
98102
uses: actions/setup-node@v3
99103
with:
100-
node-version: '22'
104+
node-version: ${{ env.NODE_VERSION }}
101105

102106
- name: Build FastCloner for net46
103107
run: dotnet build src/FastCloner/ --framework net46

0 commit comments

Comments
 (0)