Skip to content

Commit

Permalink
ci: read from momento api key (#382)
Browse files Browse the repository at this point in the history
In order to be uniform with other SDKs, we read the API key from the
environment variable MOMENTO_API_KEY.
  • Loading branch information
malandis committed Jul 9, 2024
1 parent affe7f7 commit c8c9e57
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
TEST_AUTH_TOKEN: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
MOMENTO_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
TEST_CACHE_NAME: java-integration-test-ci-${{ github.sha }}

steps:
- name: Checkout project
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
runs-on: ubuntu-latest

env:
TEST_AUTH_TOKEN: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
TEST_CACHE_NAME: dummy
MOMENTO_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}

permissions:
actions: read
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class BaseCacheTestClass {

@BeforeAll
static void beforeAll() {
credentialProvider = CredentialProvider.fromEnvVar("TEST_AUTH_TOKEN");
credentialProvider = CredentialProvider.fromEnvVar("MOMENTO_API_KEY");
cacheClient =
CacheClient.builder(credentialProvider, Configurations.Laptop.latest(), DEFAULT_TTL_SECONDS)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class BaseStorageTestClass {

@BeforeAll
static void beforeAll() {
credentialProvider = CredentialProvider.fromEnvVar("TEST_AUTH_TOKEN");
credentialProvider = CredentialProvider.fromEnvVar("MOMENTO_API_KEY");
storageClient =
new PreviewStorageClientBuilder()
.withCredentialProvider(credentialProvider)
Expand Down

0 comments on commit c8c9e57

Please sign in to comment.