Skip to content

Commit cb26fcf

Browse files
authored
chore(ci): install codecov token to avoid hitting GitHub API rate limits (#472)
This caused failures in upload of codecov reports often and a lot.
1 parent 1b0735c commit cb26fcf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/end-to-end.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v3
36+
3637
- name: Set up Python 3.8
3738
uses: actions/setup-python@v4
3839
with:
@@ -41,23 +42,27 @@ jobs:
4142
cache-dependency-path: |
4243
e2e/requirements.base
4344
requirements.txt
45+
4446
- uses: actions/cache@v3
4547
name: Cache Playwright
4648
id: playwright-cache
4749
with:
4850
path: '~/.cache/ms-playwright'
4951
key: '${{ runner.os }}-playwright'
52+
5053
- name: Set up packages
5154
run: |
5255
python -m pip install --upgrade pip
5356
pip install -r e2e/requirements.base
5457
pip install -r requirements.txt
5558
playwright install
59+
5660
- name: Set up remote SSH keys
5761
run: |
5862
mkdir -p ~/.ssh
5963
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
6064
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
65+
6166
- name: Playwright (storage=${{ matrix.storage }})
6267
run: |
6368
if [ -n "${{ matrix.unset }}" ]; then
@@ -73,5 +78,8 @@ jobs:
7378
TRUEWIKI_STORAGE_GITHUB_APP_ID: ${{ secrets.E2E_STORAGE_GITHUB_APP_ID }}
7479
TRUEWIKI_STORAGE_GITHUB_APP_KEY: ${{ secrets.E2E_STORAGE_GITHUB_APP_KEY }}
7580
TRUEWIKI_STORAGE_GITLAB_PRIVATE_KEY: ${{ secrets.E2E_STORAGE_GITLAB_PRIVATE_KEY }}
81+
7682
- name: Upload coverage to Codecov
7783
uses: codecov/codecov-action@v3
84+
with:
85+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)