Skip to content

Bump to version 1.0.0 #18

Bump to version 1.0.0

Bump to version 1.0.0 #18

Workflow file for this run

name: Build - CI
on:
push:
branches: [ main ]
jobs:
build-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.101
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-restore --no-build
coverage-ci:
needs: build-ci
runs-on: ubuntu-latest
strategy:
matrix:
test_path:
- src/tests/SoloX.TableModel.UTests
- src/tests/SoloX.TableModel.Server.UTests
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.101
- name: Install dependencies ${{ matrix.test_path }}
run: dotnet restore ${{ matrix.test_path }}
- name: Build ${{ matrix.test_path }}
run: dotnet build ${{ matrix.test_path }} --configuration Release --no-restore
- name: Test Coverage ${{ matrix.test_path }}
run: dotnet test ${{ matrix.test_path }} --configuration Release --no-restore --no-build --collect:"XPlat Code Coverage" --settings coverlet.runsettings
- name: Moving test results
run: mv ${{ matrix.test_path }}/TestResults/**/coverage.cobertura.xml ${{ matrix.test_path }}/TestResults/coverage.cobertura.xml
- name: Send to coverals
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.test_path }}/TestResults/coverage.cobertura.xml
format: cobertura
flag-name: test-${{ matrix.test_path }}
parallel: true
end-coverage-ci:
needs: coverage-ci
runs-on: ubuntu-latest
steps:
- name: Finish coverals
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
pack-ci:
needs: build-ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.101
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Pack
run: dotnet pack --configuration Release --no-restore --no-build
- name: Upload Packages
uses: actions/upload-artifact@v3
with:
name: 'NugetPackages'
path: |
src/libs/**/*.nupkg