Skip to content

Merge pull request #31 from deveel/30-tenant-resolver-in-repository-p… #123

Merge pull request #31 from deveel/30-tenant-resolver-in-repository-p…

Merge pull request #31 from deveel/30-tenant-resolver-in-repository-p… #123

Workflow file for this run

name: Repository CI/CD
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Framework
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Install SQLite Spatial
run: sudo apt-get install -y libsqlite3-mod-spatialite
- name: Add Deveel GitHub NuGet Source
run: dotnet nuget add source "https://nuget.pkg.github.com/deveel/index.json" -n "Deveel GitHub" -u ${{ secrets.DEVEEL_NUGET_USER }} -p ${{ secrets.DEVEEL_NUGET_TOKEN }} --store-password-in-clear-text
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --version-suffix $GITHUB_RUN_ID -c Release
- name: Test
run: dotnet test --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Collect to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Pack NuGet
run: dotnet pack --version-suffix $GITHUB_RUN_ID -c Release -o ./nuget
- name: Push NutGet
run: dotnet nuget push ./nuget/*.nupkg -s "Deveel GitHub" --skip-duplicate --api-key ${{secrets.DEVEEL_NUGET_TOKEN}}
clean:
name: "Clean Old Packages"
needs: build
uses: ./.github/workflows/clean-packages.yml