Add Moderation API and stable response types #4
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: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| # Run the core module's tests: this compiles the generated client (a dependency) | |
| # and runs the hand-written SSO unit + integration tests, which are the real coverage. | |
| - name: Run tests | |
| working-directory: core | |
| run: | | |
| chmod +x gradlew | |
| ./gradlew test --no-daemon | |
| env: | |
| FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} | |
| FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} |