Regenerate SDK: Moderation API + grouped request parameters #17
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-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake g++ pkg-config libssl-dev libcpprest-dev libboost-all-dev libsecret-1-dev | |
| - name: Configure | |
| run: cmake -S . -B build | |
| # Limit parallelism: the generated model set is large and high -j exhausts runner memory. | |
| - name: Build | |
| run: cmake --build build --parallel 2 | |
| - name: Run tests | |
| run: ctest --test-dir build --output-on-failure | |
| env: | |
| FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} | |
| FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} |