Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Xicheng Guo committed Dec 9, 2023
1 parent dceb394 commit 366be4d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions src/__tests__/helper/start-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ 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",
});
}

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,
}
}

static getGithubRequest() {
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",
});
}
Expand All @@ -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",
});
}
Expand Down

0 comments on commit 366be4d

Please sign in to comment.