-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (32 loc) · 1.08 KB
/
dsstats.tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Dsstats Tests
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
jobs:
tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create config
run: |
sudo mkdir -p /data/mysqlfiles \
&& sudo mkdir -p /data/temp \
&& sudo mkdir -p /data/ds/replayblobs \
&& sudo chmod 777 /data/mysqlfiles \
&& sudo chmod 777 /data/temp \
&& sudo chmod 777 /data/ds/replayblobs \
&& sudo cp ./src/tests/appsettings.Development.json /data/localserverconfig.json
- uses: isbang/[email protected]
with:
compose-file: "./src/tests/docker/docker-compose.yml"
services: mysql
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- run: dotnet build ./src/tests/dsstats.ratings.tests/dsstats.ratings.tests.csproj
- name: Run your tests
run: dotnet test ./src/tests/dsstats.ratings.tests/dsstats.ratings.tests.csproj --no-build