Skip to content

Commit 6718e5b

Browse files
authored
Merge pull request #522 from codebude/fix-readmes-and-update-codecov
Fix readmes and update codecov
2 parents 6d41db5 + 42b3ac9 commit 6718e5b

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

.github/workflows/wf-build-release-ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,35 +92,35 @@ jobs:
9292
run: dotnet test -c Release --nologo --no-build
9393

9494
- name: Codecov update netcoreapp2.0
95-
uses: codecov/codecov-action@v2
95+
uses: codecov/codecov-action@v4
9696
with:
9797
token: ${{ secrets.CODECOV_TOKEN }}
9898
files: ./QRCoderTests/coverage.netcoreapp2.0.opencover.xml
9999
flags: netcoreapp2.0
100100

101101
- name: Codecov update net5.0
102-
uses: codecov/codecov-action@v2
102+
uses: codecov/codecov-action@v4
103103
with:
104104
token: ${{ secrets.CODECOV_TOKEN }}
105105
files: ./QRCoderTests/coverage.net5.0.opencover.xml
106106
flags: net5.0
107107

108108
- name: Codecov update net5.0-windows
109-
uses: codecov/codecov-action@v2
109+
uses: codecov/codecov-action@v4
110110
with:
111111
token: ${{ secrets.CODECOV_TOKEN }}
112112
files: ./QRCoderTests/coverage.net5.0-windows.opencover.xml
113113
flags: net5.0-windows
114114

115115
- name: Codecov update net6.0
116-
uses: codecov/codecov-action@v2
116+
uses: codecov/codecov-action@v4
117117
with:
118118
token: ${{ secrets.CODECOV_TOKEN }}
119119
files: ./QRCoderTests/coverage.net5.0.opencover.xml
120120
flags: net6.0
121121

122122
- name: Codecov update net6.0-windows
123-
uses: codecov/codecov-action@v2
123+
uses: codecov/codecov-action@v4
124124
with:
125125
token: ${{ secrets.CODECOV_TOKEN }}
126126
files: ./QRCoderTests/coverage.net5.0-windows.opencover.xml

.github/workflows/wf-build-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,35 +93,35 @@ jobs:
9393
run: dotnet test -c Release --nologo --no-build
9494

9595
- name: Codecov update netcoreapp2.0
96-
uses: codecov/codecov-action@v2
96+
uses: codecov/codecov-action@v4
9797
with:
9898
token: ${{ secrets.CODECOV_TOKEN }}
9999
files: ./QRCoderTests/coverage.netcoreapp2.0.opencover.xml
100100
flags: netcoreapp2.0
101101

102102
- name: Codecov update net5.0
103-
uses: codecov/codecov-action@v2
103+
uses: codecov/codecov-action@v4
104104
with:
105105
token: ${{ secrets.CODECOV_TOKEN }}
106106
files: ./QRCoderTests/coverage.net5.0.opencover.xml
107107
flags: net5.0
108108

109109
- name: Codecov update net5.0-windows
110-
uses: codecov/codecov-action@v2
110+
uses: codecov/codecov-action@v4
111111
with:
112112
token: ${{ secrets.CODECOV_TOKEN }}
113113
files: ./QRCoderTests/coverage.net5.0-windows.opencover.xml
114114
flags: net5.0-windows
115115

116116
- name: Codecov update net6.0
117-
uses: codecov/codecov-action@v2
117+
uses: codecov/codecov-action@v4
118118
with:
119119
token: ${{ secrets.CODECOV_TOKEN }}
120120
files: ./QRCoderTests/coverage.net5.0.opencover.xml
121121
flags: net6.0
122122

123123
- name: Codecov update net6.0-windows
124-
uses: codecov/codecov-action@v2
124+
uses: codecov/codecov-action@v4
125125
with:
126126
token: ${{ secrets.CODECOV_TOKEN }}
127127
files: ./QRCoderTests/coverage.net5.0-windows.opencover.xml

QRCoder/Assets/nuget-readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ The release notes for the current and all past releases can be read here: [📄
1919
You only need a couple lines of code, to generate your first QR code.
2020

2121
```csharp
22-
QRCodeGenerator qrGenerator = new QRCodeGenerator();
23-
QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q);
24-
QRCode qrCode = new PngByteQRCode(qrCodeData);
25-
byte[] qrCodeImage = qrCode.GetGraphic(20);
22+
using (QRCodeGenerator qrGenerator = new QRCodeGenerator())
23+
using (QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q))
24+
using (PngByteQRCode qrCode = new PngByteQRCode(qrCodeData))
25+
{
26+
byte[] qrCodeImage = qrCode.GetGraphic(20);
27+
}
2628
```
2729

2830
There are a plenty of other options. So feel free to read more on that in our wiki: [Wiki: How to use QRCoder](https://github.com/codebude/QRCoder/wiki/How-to-use-QRCoder)

readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ _(More information on how to use Github Packages in Nuget Package Manager can be
4343
You only need a couple lines of code, to generate your first QR code.
4444

4545
```csharp
46-
QRCodeGenerator qrGenerator = new QRCodeGenerator();
47-
QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q);
48-
QRCode qrCode = new PngByteQRCode(qrCodeData);
49-
byte[] qrCodeImage = qrCode.GetGraphic(20);
46+
using (QRCodeGenerator qrGenerator = new QRCodeGenerator())
47+
using (QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q))
48+
using (PngByteQRCode qrCode = new PngByteQRCode(qrCodeData))
49+
{
50+
byte[] qrCodeImage = qrCode.GetGraphic(20);
51+
}
5052
```
5153

5254
There are a plenty of other options. So feel free to read more on that in our wiki: [Wiki: How to use QRCoder](https://github.com/codebude/QRCoder/wiki/How-to-use-QRCoder)

0 commit comments

Comments
 (0)