Skip to content

Update to use secrets for integration environment (#28) #29

Update to use secrets for integration environment (#28)

Update to use secrets for integration environment (#28) #29

Workflow file for this run

# 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 }}
secrets:
MC_CLIENT_ID: ${{ secrets.MC_CLIENT_ID }}
MC_CLIENT_SECRET: ${{ secrets.MC_CLIENT_SECRET }}
MC_CLIENT_MID: ${{ secrets.MC_CLIENT_MID }}
MC_CLIENT_BASE_URI: ${{ secrets.MC_CLIENT_BASE_URI }}