Skip to content

Commit

Permalink
Update to use secrets for integration environment
Browse files Browse the repository at this point in the history
  • Loading branch information
lbuesching committed Jan 11, 2024
1 parent fcd32a6 commit 7e1efad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
7 changes: 6 additions & 1 deletion .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ jobs:
with:
environment: "MC Integration"
test_args: --filter TestCategory="Compatibility"
build_configuration: ${{ needs.init.outputs.build_configuration }}
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 }}

0 comments on commit 7e1efad

Please sign in to comment.