Skip to content

Commit e3d6db1

Browse files
authored
Merge pull request #29 from afonsoft/feature/update-actions
feat: ajustes do build e publish
2 parents 9ae550d + b4ca82d commit e3d6db1

2 files changed

Lines changed: 2 additions & 33 deletions

File tree

.github/workflows/ci-build-test.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -98,37 +98,6 @@ jobs:
9898
fi
9999
done
100100
101-
- name: Run Tests
102-
env:
103-
LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu:/usr/local/lib
104-
run: |
105-
echo "Running tests for QRCoder.Core.sln"
106-
dotnet test QRCoder.Core.Tests/ \
107-
--configuration Release \
108-
--logger "trx;LogFileName=test-results.trx" \
109-
--results-directory TestResults \
110-
--collect:"XPlat Code Coverage" \
111-
--verbosity normal \
112-
--framework net10.0
113-
114-
- name: Upload Test Results
115-
uses: actions/upload-artifact@v4
116-
if: always()
117-
with:
118-
name: test-results-qrcoder
119-
path: |
120-
TestResults/**/*.trx
121-
TestResults/**/*.coverage
122-
retention-days: 7
123-
124-
- name: Upload Coverage Reports
125-
uses: actions/upload-artifact@v4
126-
if: always()
127-
with:
128-
name: coverage-qrcoder
129-
path: TestResults/**/coverage.*
130-
retention-days: 7
131-
132101
# Build and Test on Windows (.NET Framework)
133102
build-windows:
134103
name: Build QRCoder.Core (Windows)

.github/workflows/publish-all.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
# Pre-publish Validation
3434
validate-publish:
3535
name: 🔍 Validate Publish Readiness
36-
runs-on: ubuntu-latest
36+
runs-on: windows-latest
3737
if: github.event.inputs.confirm_publish == 'yes' || github.event_name == 'release' || startsWith(github.ref, 'refs/tags/v')
3838

3939
steps:
@@ -77,7 +77,7 @@ jobs:
7777
# Publish NuGet Packages
7878
publish-nuget:
7979
name: 📦 Publish NuGet Packages
80-
runs-on: ubuntu-latest
80+
runs-on: windows-latest
8181
needs: validate-publish
8282
environment: production
8383

0 commit comments

Comments
 (0)