From 567a36bb26160ec717b35d10ea8b80cfea132523 Mon Sep 17 00:00:00 2001 From: lbuesching <85355760+lbuesching@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:54:55 -0500 Subject: [PATCH] Update to use secrets for integration environment (#28) --- .github/workflows/build_test.yml | 12 +++++++++++- .github/workflows/ci_tests.yml | 7 ++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index e54e393..c88f8b1 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -21,6 +21,11 @@ on: description: Determines whether or not to upload artifacts type: boolean default: false + secrets: + MC_CLIENT_ID: + MC_CLIENT_SECRET: + MC_CLIENT_MID: + MC_CLIENT_BASE_URI: jobs: build_test_archive: @@ -57,5 +62,10 @@ jobs: path: ./src/vscode/*.vsix retention-days: 3 - name: Test - working-directory: ./src + working-directory: ./src + env: + 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 }} run: dotnet test --no-build --verbosity normal ${{ inputs.test_args }} diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 078a123..6788c8c 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -37,4 +37,9 @@ jobs: with: environment: "MC Integration" test_args: --filter TestCategory="Compatibility" - build_configuration: ${{ needs.init.outputs.build_configuration }} \ No newline at end of file + 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 }} \ No newline at end of file