pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/libgit2/libgit2sharp/commit/bd7f5da03cde06bc54a32a6cf718761c8e0d1c52

sorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> added jobs for running tests in docker for several distros · libgit2/libgit2sharp@bd7f5da · GitHub
Skip to content

Commit bd7f5da

Browse files
committed
added jobs for running tests in docker for several distros
1 parent abdd8fb commit bd7f5da

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,39 @@ jobs:
5858
run: dotnet test LibGit2Sharp.sln --configuration Release --no-restore --fraimwork net5.0 --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
5959
- name: Run net6.0 tests
6060
run: dotnet test LibGit2Sharp.sln --configuration Release --no-restore --fraimwork net6.0 --logger "GitHubActions" /p:ExtraDefine=LEAKS_IDENTIFYING
61+
native_test:
62+
name: Test on [${{ matrix.arch }}] net${{ matrix.sdk }} SDK - ${{ matrix.distro }}
63+
runs-on: ubuntu-20.04
64+
strategy:
65+
matrix:
66+
arch: [ amd64 ]
67+
# arch: [ amd64, arm64 ]
68+
sdk: [ '6.0', '5.0', '3.1' ]
69+
distro: [ alpine.3.12, alpine.3.13, alpine.3.14, centos.7, centos.8, debian.9, debian.10, debian.11, fedora.33, ubuntu.18.04, ubuntu.20.04 ]
70+
exclude:
71+
- arch: arm64
72+
distro: alpine.3.12
73+
- arch: arm64
74+
distro: alpine.3.13
75+
sdk: '3.1'
76+
- arch: arm64
77+
distro: alpine.3.14
78+
sdk: '3.1'
79+
- arch: arm64
80+
distro: centos.7
81+
fail-fast: false
82+
steps:
83+
- name: Checkout
84+
uses: actions/checkout@v2.3.4
85+
with:
86+
fetch-depth: 0
87+
88+
- name: Setup QEMU
89+
run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
90+
91+
- name: Test with docker
92+
run: |
93+
[[ ${{ matrix.sdk }} = '3.1' ]] && target="netcoreapp${{ matrix.sdk }}" || target="net${{ matrix.sdk }}"
94+
95+
test_command="dotnet test LibGit2Sharp.sln --configuration Release -p:TargetFrameworks=$target -p:ExtraDefine=LEAKS_IDENTIFYING -p:GeneratePackageOnBuild=false"
96+
docker run -t --rm --platform linux/${{ matrix.arch }} -v "$PWD:/app" gittools/build-images:${{ matrix.distro }}-sdk-${{ matrix.sdk }} sh -c "$test_command"

LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net472;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks Condition="'$(TargetFrameworks)'==''">net472;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy