Skip to content

Changed mock setup for UpdatepictogramInfo_Succes to rely less on oth… #1135

Changed mock setup for UpdatepictogramInfo_Succes to rely less on oth…

Changed mock setup for UpdatepictogramInfo_Succes to rely less on oth… #1135

name: Integration Test
on:
push:
jobs:
build:
name: Integration Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: ${{ secrets.IntegrationTestPassword }}
MYSQL_DATABASE: 'giraf'
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- name: Set up API
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0'
- name: Run API
# secrets are located in repo aau-giraf/web-api:settings.secrets
# "nohup" is used to run the dotnet application in the background
run: |
export ASPNETCORE_ENVIRONMENT="Development"
bash scripts/ci-setup.sh ${{ secrets.IntegrationTestUser }} ${{ secrets.IntegrationTestPassword }}
dotnet tool install --global dotnet-ef
cd GirafRest
dotnet restore
dotnet-ef database update
nohup dotnet run --sample-data > /dev/null 2>&1 &
- name: Tests
run: dotnet test ./Giraf.IntegrationTest/