Skip to content

Bump to version 1.0.0-alpha.38 #24

Bump to version 1.0.0-alpha.38

Bump to version 1.0.0-alpha.38 #24

Workflow file for this run

name: Build - CI
on:
push:
branches: [ master ]
jobs:
build-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.100
- 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.GeneratorTools.Core.UTest
- src/tests/SoloX.GeneratorTools.Core.CSharp.UTest
- src/tests/SoloX.GeneratorTools.Core.CSharp.ITest
- src/tools.tests/SoloX.GeneratorTools.Generator.ITest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.100
- 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/github-action@v2.2.3
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/github-action@v2.2.3
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: 8.0.100
- 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/**/*.nupkg
src/**/*.snupkg