diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5900c7e..a2851ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,12 +24,12 @@ jobs: - name: Run Jest tests run: npm run test env: - GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }} - GITEE_OWNER: ${{ secrets.GITEE_OWNER }} - GITEE_REPO: ${{ secrets.GITEE_REPO }} - GITEE_NUMBER: ${{ secrets.GITEE_NUMBER }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} + TEST_GITEE_TOKEN: ${{ secrets.TEST_GITEE_TOKEN }} + TEST_GITEE_OWNER: ${{ secrets.TEST_GITEE_OWNER }} + TEST_GITEE_REPO: ${{ secrets.TEST_GITEE_REPO }} + TEST_GITEE_NUMBER: ${{ secrets.TEST_GITEE_NUMBER }} + TEST_GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }} + TEST_GITLAB_TOKEN: ${{ secrets.TEST_GITLAB_TOKEN }} - name: Upload coverage reports to Codecov diff --git a/src/__tests__/helper/start-test.ts b/src/__tests__/helper/start-test.ts index 2d320a6..ff8090a 100644 --- a/src/__tests__/helper/start-test.ts +++ b/src/__tests__/helper/start-test.ts @@ -13,7 +13,7 @@ export class StartTest { return createRequest({ requestType: RequestType.axios, request: axios, - accessToken: process.env.GITEE_TOKEN as string, + accessToken: process.env.TEST_GITEE_TOKEN as string, baseUrl: "https://gitee.com", }); } @@ -21,9 +21,9 @@ export class StartTest { static getGiteeOptions(): GiteeStorageOptions { return { request: this.getGiteeRequest(), - owner: process.env.GITEE_OWNER as string, - repo: process.env.GITEE_REPO as string, - number: process.env.GITEE_NUMBER as string, + owner: process.env.TEST_GITEE_OWNER as string, + repo: process.env.TEST_GITEE_REPO as string, + number: process.env.TEST_GITEE_NUMBER as string, } } @@ -31,7 +31,7 @@ export class StartTest { return createRequest({ requestType: RequestType.axios, request: axios, - accessToken: process.env.GITHUB_TOKEN as string, + accessToken: process.env.TEST_GITHUB_TOKEN as string, baseUrl: "https://api.github.com", }); } @@ -40,7 +40,7 @@ export class StartTest { return createRequest({ requestType: RequestType.axios, request: axios, - accessToken: process.env.GITLAB_TOKEN as string, + accessToken: process.env.TEST_GITLAB_TOKEN as string, baseUrl: "https://gitlab.com", }); }