Use file-level where possible for faster computation #200
This file contains 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
# Ensure lint metadata is tested | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
name: ensure-metadata-tests | |
jobs: | |
ensure-metadata-tests: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: "release" | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
- name: Ensure lint metadata is tested | |
run: | | |
options(crayon.enabled = TRUE) | |
callr::rscript(".dev/lint_metadata_test.R") | |
shell: Rscript {0} |