Run with a MRT build #20
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: Run tests | |
# Trigger test workflow whenever: | |
# 1. Commits are pushed directly to the mrt branch | |
on: | |
push: | |
branches: ["mrt"] | |
pull_request: | |
branches: ["mrt"] | |
types: [ | |
# Default triggers | |
opened, | |
synchronize, | |
reopened, | |
# Additional triggers | |
labeled, | |
unlabeled | |
] | |
workflow_dispatch: | |
inputs: | |
test-server-rc: | |
type: boolean | |
default: false | |
required: true | |
jobs: | |
#build: | |
# runs-on: ubuntu-latest | |
# strategy: | |
# fail-fast: false | |
# | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Setup .NET | |
# uses: actions/setup-dotnet@v4 | |
# with: | |
# dotnet-version: 6.0.x | |
# - name: Restore dependencies | |
# run: dotnet restore /p:EnableWindowsTargeting=true | |
# #- name: Install dependencies | |
# # run: dotnet add package NeoLua --version 1.3.14 | |
# - name: Build | |
# run: dotnet build --configuration Release --no-restore /p:EnableWindowsTargeting=true | |
# | |
# - name: Publish | |
# run: dotnet publish -c Release -o ../publish | |
# | |
# - name: Send files to test jobs | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: AerospikeClient.dll | |
# path: ./AerospikeClient/bin/Debug/*.whl | |
test-ee: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ./.github/actions/run-ee-server | |
with: | |
use-server-rc: true | |
docker-hub-username: ${{ secrets.DOCKER_HUB_BOT_USERNAME }} | |
docker-hub-password: ${{ secrets.DOCKER_HUB_BOT_PW }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore /p:EnableWindowsTargeting=true | |
#- name: Install dependencies | |
# run: dotnet add package NeoLua --version 1.3.14 | |
- name: Build | |
run: dotnet build --configuration Release --no-restore /p:EnableWindowsTargeting=true | |
- name: Run tests | |
run: dotnet test --configuration Release --no-build --verbosity normal | |
- name: Show logs if failed | |
if: ${{ failure() }} | |
run: | | |
docker container logs aerospike | |
cat ./configs/aerospike.conf |