Skip to content

Commit

Permalink
ci(test): Avoid rate limit for ddev add-ons
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Oct 18, 2024
1 parent 1d47e6c commit dd63ec2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
permissions:
contents: read

env:
# Allow ddev get to use a GitHub token to prevent rate limiting by tests
DDEV_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
test-suite:
strategy:
Expand Down Expand Up @@ -44,7 +48,7 @@ jobs:
run: ddev config --project-type=php --project-name=crowdsec-php-common --php-version=${{ matrix.php-version }}

- name: Add-ons install
run: ddev get julienloizelet/ddev-tools
run: ddev add-on get julienloizelet/ddev-tools

- name: Start DDEV with PHP ${{ matrix.php-version }}
run: ddev start
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
permissions:
contents: read

env:
# Allow ddev get to use a GitHub token to prevent rate limiting by tests
DDEV_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
test-suite:
strategy:
Expand Down Expand Up @@ -45,7 +49,7 @@ jobs:
run: ddev config --project-type=php --project-name=crowdsec-php-common --php-version=${{ matrix.php-version }}

- name: Add-ons install
run: ddev get julienloizelet/ddev-tools
run: ddev add-on get julienloizelet/ddev-tools

- name: Start DDEV
uses: nick-fields/retry@v3
Expand Down

0 comments on commit dd63ec2

Please sign in to comment.