-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 1.85 KB
/
ci_build_and_test.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: '[CI] build & test'
on:
push:
branches:
- master
pull_request:
branches:
- master
- development
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
configurations: [Debug, Release]
name: 'build ${{ matrix.prefix }}${{ matrix.configurations }} on ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.200
- name: 'dotnet build ${{ matrix.prefix }}${{ matrix.configurations }}'
run: |
dotnet build src/Exomia.ECS --configuration ${{ matrix.configurations }} --force --nologo -p:Platform=AnyCPU
dotnet build src/Exomia.ECS --configuration ${{ matrix.configurations }} --force --nologo -p:Platform=x86
dotnet build src/Exomia.ECS --configuration ${{ matrix.configurations }} --force --nologo -p:Platform=x64
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
configurations: [Debug, Release]
name: 'test ${{ matrix.prefix }}${{ matrix.configurations }} on ${{ matrix.os }}'
needs: [build]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.200
- name: 'dotnet test ${{ matrix.prefix }}${{ matrix.configurations }}'
run: |
dotnet test tests/L0/Exomia.ECS.Tests --configuration ${{ matrix.configurations }} --nologo -p:Platform=AnyCPU
dotnet test tests/L0/Exomia.ECS.Tests --configuration ${{ matrix.configurations }} --nologo -p:Platform=x86
dotnet test tests/L0/Exomia.ECS.Tests --configuration ${{ matrix.configurations }} --nologo -p:Platform=x64