Skip to content

Commit ee253e8

Browse files
committed
enable tests again
1 parent 858046d commit ee253e8

File tree

1 file changed

+67
-67
lines changed

1 file changed

+67
-67
lines changed

.github/workflows/ci.yml

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -62,73 +62,73 @@ jobs:
6262
- name: Verify trimming compatibility
6363
run: dotnet publish TrimmingTestApp
6464

65-
# test:
66-
# name: Test / ${{ matrix.os }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
67-
# runs-on: ${{ matrix.os }}
68-
# strategy:
69-
# matrix:
70-
# arch: [ x64 ]
71-
# os: [ windows-2022, macos-14 ]
72-
# tfm: [ net472, net8.0, net9.0 ]
73-
# exclude:
74-
# - os: macos-14
75-
# tfm: net472
76-
# include:
77-
# - arch: arm64
78-
# os: macos-14
79-
# tfm: net8.0
80-
# - arch: arm64
81-
# os: macos-14
82-
# tfm: net9.0
83-
# fail-fast: false
84-
# steps:
85-
# - name: Checkout
86-
# uses: actions/[email protected]
87-
# with:
88-
# fetch-depth: 0
89-
# - name: Install .NET SDK
90-
# uses: actions/[email protected]
91-
# with:
92-
# dotnet-version: |
93-
# 9.0.x
94-
# 8.0.x
95-
# - name: Run ${{ matrix.tfm }} tests
96-
# run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
97-
# test-linux:
98-
# name: Test / ${{ matrix.distro }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
99-
# runs-on: ${{ matrix.runnerImage }}
100-
# strategy:
101-
# matrix:
102-
# arch: [ amd64, arm64 ]
103-
# distro: [ alpine.3.17, alpine.3.18, alpine.3.19, alpine.3.20, centos.stream.9, debian.12, fedora.40, ubuntu.20.04, ubuntu.22.04, ubuntu.24.04 ]
104-
# sdk: [ '8.0', '9.0' ]
105-
# exclude:
106-
# - distro: alpine.3.17
107-
# sdk: '9.0'
108-
# - distro: alpine.3.18
109-
# sdk: '9.0'
110-
# - distro: alpine.3.19
111-
# sdk: '9.0'
112-
# include:
113-
# - sdk: '8.0'
114-
# tfm: net8.0
115-
# - sdk: '9.0'
116-
# tfm: net9.0
117-
# - arch: amd64
118-
# runnerImage: ubuntu-22.04
119-
# - arch: arm64
120-
# runnerImage: ubuntu-22.04-arm
121-
# fail-fast: false
122-
# steps:
123-
# - name: Checkout
124-
# uses: actions/[email protected]
125-
# with:
126-
# fetch-depth: 0
127-
# - name: Run ${{ matrix.tfm }} tests
128-
# run: |
129-
# git_command="git config --global --add safe.directory /app"
130-
# test_command="dotnet test LibGit2Sharp.sln --configuration Release -p:TargetFrameworks=${{ matrix.tfm }} --logger "GitHubActions" -p:ExtraDefine=LEAKS_IDENTIFYING"
131-
# docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" -e OPENSSL_ENABLE_SHA1_SIGNATURES=1 gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$git_command && $test_command"
65+
test:
66+
name: Test / ${{ matrix.os }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
67+
runs-on: ${{ matrix.os }}
68+
strategy:
69+
matrix:
70+
arch: [ x64 ]
71+
os: [ windows-2022, macos-14 ]
72+
tfm: [ net472, net8.0, net9.0 ]
73+
exclude:
74+
- os: macos-14
75+
tfm: net472
76+
include:
77+
- arch: arm64
78+
os: macos-14
79+
tfm: net8.0
80+
- arch: arm64
81+
os: macos-14
82+
tfm: net9.0
83+
fail-fast: false
84+
steps:
85+
- name: Checkout
86+
uses: actions/[email protected]
87+
with:
88+
fetch-depth: 0
89+
- name: Install .NET SDK
90+
uses: actions/[email protected]
91+
with:
92+
dotnet-version: |
93+
9.0.x
94+
8.0.x
95+
- name: Run ${{ matrix.tfm }} tests
96+
run: dotnet test LibGit2Sharp.sln --configuration Release --framework ${{ matrix.tfm }} --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
97+
test-linux:
98+
name: Test / ${{ matrix.distro }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
99+
runs-on: ${{ matrix.runnerImage }}
100+
strategy:
101+
matrix:
102+
arch: [ amd64, arm64 ]
103+
distro: [ alpine.3.17, alpine.3.18, alpine.3.19, alpine.3.20, centos.stream.9, debian.12, fedora.40, ubuntu.20.04, ubuntu.22.04, ubuntu.24.04 ]
104+
sdk: [ '8.0', '9.0' ]
105+
exclude:
106+
- distro: alpine.3.17
107+
sdk: '9.0'
108+
- distro: alpine.3.18
109+
sdk: '9.0'
110+
- distro: alpine.3.19
111+
sdk: '9.0'
112+
include:
113+
- sdk: '8.0'
114+
tfm: net8.0
115+
- sdk: '9.0'
116+
tfm: net9.0
117+
- arch: amd64
118+
runnerImage: ubuntu-22.04
119+
- arch: arm64
120+
runnerImage: ubuntu-22.04-arm
121+
fail-fast: false
122+
steps:
123+
- name: Checkout
124+
uses: actions/[email protected]
125+
with:
126+
fetch-depth: 0
127+
- name: Run ${{ matrix.tfm }} tests
128+
run: |
129+
git_command="git config --global --add safe.directory /app"
130+
test_command="dotnet test LibGit2Sharp.sln --configuration Release -p:TargetFrameworks=${{ matrix.tfm }} --logger "GitHubActions" -p:ExtraDefine=LEAKS_IDENTIFYING"
131+
docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" -e OPENSSL_ENABLE_SHA1_SIGNATURES=1 gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$git_command && $test_command"
132132
133133
nuget-push:
134134
name: Octopus NuGet Push

0 commit comments

Comments
 (0)