Regenerate SDK: Moderation API + grouped request parameters #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| # Runs on PRs and pushes to the default branch. We use `pull_request` (never | |
| # `pull_request_target`), so secrets are NOT exposed to pull requests from forks. | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main, master] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| tools: composer | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| # phpunit.xml.dist (generated) only covers the generated stub suites; run the | |
| # hand-written SSO + integration tests explicitly, as the other SDKs' CI does. | |
| - name: Run tests | |
| run: vendor/bin/phpunit test/SSO | |
| env: | |
| FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} | |
| FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} |