fix unit tests #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Info | |
run: echo 'Building ${{ github.ref }}' | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.100 | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: '8.0' | |
- name: Build & Test | |
run: make test config=Release | |
publish: | |
if: contains(github.ref, 'refs/tags/') | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Info | |
run: echo 'Building ${{ github.ref }}' | |
- uses: actions/checkout@v1 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.100 | |
- name: Build nuget | |
run: make nuget config=Release version=${GITHUB_REF#refs/tags/} | |
- name: publish nuget | |
run: make publish nugetkey=${{secrets.NUGET_KEY}} |