-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (30 loc) · 1022 Bytes
/
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
name: Dsstats Tests
on:
push:
branches: [ dev, master ]
pull_request:
branches: [ dev, master ]
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 chmod 777 /data/mysqlfiles \
&& sudo chmod 777 /data/temp \
&& sudo cp ./src/pax.dsstats.web/Server/appsettings.Development.json /data/localserverconfig.json
- uses: isbang/[email protected]
with:
compose-file: "./src/pax.dsstats.web/docker/docker-compose.yml"
services: mysql
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- run: dotnet build ./src/pax.dsstats.web/dsstats.Tests/dsstats.Tests.csproj
- name: Run your tests
run: dotnet test ./src/pax.dsstats.web/dsstats.Tests/dsstats.Tests.csproj --no-build