Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use .NET Core 6.0 SDK
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
source-url: https://nuget.pkg.github.com/Shane32/index.json
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Pack solution [Release]
run: dotnet pack --no-restore --no-build -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER -o out
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Nuget packages
path: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Check github.ref starts with 'refs/tags/'
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: |
Expand All @@ -24,7 +24,7 @@ jobs:
echo version=$version
echo "version=$version" >> $GITHUB_ENV
- name: Use .NET Core 6.0 SDK
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
source-url: https://api.nuget.org/v3/index.json
Expand All @@ -37,15 +37,15 @@ jobs:
- name: Pack solution [Release]
run: dotnet pack --no-restore --no-build -c Release -p:Version=$version -o out
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Nuget packages
path: |
out/*
- name: Publish Nuget packages to Nuget registry
run: dotnet nuget push "out/*" -k ${{secrets.NUGET_AUTH_TOKEN}}
- name: Upload nuget packages as release artifacts
uses: actions/github-script@v2
uses: actions/github-script@v4
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
- windows-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install libgdiplus (Ubuntu only)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgdiplus
- name: Use .NET Core SDK
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
Expand Down Expand Up @@ -62,7 +62,8 @@ jobs:
reporttypes: 'Html'
tag: 'test_${{ github.run_number }}'
- name: Upload artifacts
uses: actions/upload-artifact@v2
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v4
with:
name: Code coverage artifacts
path: |
Expand Down
5 changes: 3 additions & 2 deletions src/Shane32.ExcelLinq.Tests/Models/TestFileContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ protected override void OnModelCreating(ExcelModelBuilder builder)
worksheet.Calculate();
for (int col = 1; col <= worksheet.Dimension.End.Column; col++) {
var column = worksheet.Column(col);
column.AutoFit();
column.Width *= 1.2;
//not available on linux:
//column.AutoFit();
//column.Width *= 1.2;
}
worksheet.Cells[1, 1].Value = "This is a test header";
});
Expand Down
4 changes: 4 additions & 0 deletions src/Shane32.ExcelLinq.Tests/Shane32.ExcelLinq.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0;net462;net48</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
<WarningsAsErrors>$(WarningsAsErrors);CA1416</WarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
2 changes: 1 addition & 1 deletion src/Shane32.ExcelLinq/Shane32.ExcelLinq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EPPlus-LGPL" Version="4.5.3.9" />
<PackageReference Include="EPPlus-LGPL" Version="4.5.3.10" />
</ItemGroup>

<ItemGroup>
Expand Down