Skip to content

Commit 933bb8d

Browse files
authored
Add integration test for buildifier (#15)
* Add integration test for buildifier * Revamp downloader * Declare user-agent and maybe use auth token * Allow override env var for rate limits * Make GITHUB_TOKEN env var visible to step * Fix buildifier test on windows
1 parent f2e5d5d commit 933bb8d

14 files changed

Lines changed: 983 additions & 1967 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ jobs:
2121
run: npm install
2222
- name: Run headless test
2323
uses: GabrielBB/xvfb-action@v1.0
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2426
with:
2527
run: npm test

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint"
6+
]
7+
}

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,7 @@ None currently.
8686

8787
## Known Issues
8888

89-
N/A
89+
**Github Rate Limits**: This extension makes requests to the github v3 API. If
90+
you experience errors due to rate limits, `export
91+
GITHUB_TOKEN={MY_PERSONAL_TOKEN}` and relaunch vscode to get higher rate
92+
limits.

0 commit comments

Comments
 (0)