Add database integration tests for 18 entity models with TestContainers #185
This file contains hidden or 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: .NET Pull requests | |
| on: | |
| pull_request: | |
| branches: [ master, stable ] | |
| paths-ignore: | |
| - '**.md' | |
| - '.github/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Start MariaDB | |
| run: | | |
| docker pull mariadb:10.8 | |
| docker run --name mariadbtest -e MYSQL_ROOT_PASSWORD=secretpassword -p 3306:3306 -d mariadb:10.8 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Get the version | |
| id: get_version | |
| run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | cut -d "v" -f 2) | |
| - name: Build | |
| run: dotnet build --configuration Release --no-restore | |
| - name: Unit Tests | |
| run: dotnet test --no-restore -c Release -v n Microting.EformAngularFrontendBase.Tests/Microting.EformAngularFrontendBase.Tests.csproj |