-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (36 loc) · 1.25 KB
/
ci_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
33
34
35
36
37
38
39
40
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: CI Tests
on:
push:
branches: [ "main", "release", "ci-dev" ]
pull_request:
branches: [ "main", "release", "ci-dev" ]
jobs:
init:
runs-on: ubuntu-latest
outputs:
build_configuration: ${{ steps.set_buildconfig.outputs.build_configuration }}
steps:
- name: Set release configuration for release branches
id: set_buildconfig
run: |
if [[ "${{ github.ref_name }}" == "release" ]]; then
echo "::set-output name=build_configuration::Release"
else
echo "::set-output name=build_configuration::Debug"
fi
build_test:
uses: ./.github/workflows/build_test.yml
needs: init
with:
test_args: --filter TestCategory!="Compatibility"
build_configuration: ${{ needs.init.outputs.build_configuration }}
store_artifacts: true
build_test_backward_compatibility:
uses: ./.github/workflows/build_test.yml
needs: init
with:
environment: "MC Integration"
test_args: --filter TestCategory="Compatibility"
build_configuration: ${{ needs.init.outputs.build_configuration }}