docs: Spanish as primary language, English as secondary #12
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
| # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
| # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| name: lint | |
| permissions: read-all | |
| # Cancel a superseded run (e.g. a newer push to the same ref) so its minutes | |
| # are not wasted completing. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: any::lintr, local::. | |
| needs: lint | |
| - name: Lint | |
| run: lintr::lint_package() | |
| shell: Rscript {0} | |
| env: | |
| LINTR_ERROR_ON_LINT: true | |
| # Source-hygiene gate: no bare stop()/warning() in R/ — every condition | |
| # must be raised through ent_abort/cli::cli_warn/rlang::cnd_signal with a | |
| # stable class (see Task 28). Runs without R so it stays fast. | |
| grep-gate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: No bare stop()/warning() in R/ | |
| run: | | |
| if grep -rnE '\b(stop|warning)\s*\(' R/; then | |
| echo "Bare stop()/warning() without a condition class are forbidden in R/." | |
| exit 1 | |
| fi | |
| echo "No bare stop()/warning() found in R/." |