Skip to content

chore: bump changelog & version after release of v0.5.0 (#15) #112

chore: bump changelog & version after release of v0.5.0 (#15)

chore: bump changelog & version after release of v0.5.0 (#15) #112

Workflow file for this run

# 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
name: R-CMD-check
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
R-CMD-check:
strategy:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, r: "release" }
- { os: ubuntu-latest, r: "oldrel-1" }
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v7
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: local::.
needs: dev
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: r-lib/actions/setup-r@v2
with:
r-version: "4.5"
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
needs: dev
- name: Lint
shell: Rscript {0}
run: lintr::lint_package()
env:
LINTR_ERROR_ON_LINT: false
check: # make sure all check jobs pass. https://github.com/orgs/community/discussions/4324#discussioncomment-3477871
runs-on: ubuntu-latest
needs: [R-CMD-check, lint]
if: always()
steps:
- name: Successful build
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failing build
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1