diff --git a/.github/workflows/check-standard.yml b/.github/workflows/check-standard.yml new file mode 100644 index 0000000..f8f9cdd --- /dev/null +++ b/.github/workflows/check-standard.yml @@ -0,0 +1,63 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/master/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] + +name: R-CMD-check + +jobs: + R-CMD-check: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + strategy: + fail-fast: false + matrix: + config: + - {os: macOS-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'oldrel/1'} + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes + + steps: + - uses: actions/checkout@v3 + + - uses: r-lib/actions/setup-pandoc@v2 + + - 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: rcmdcheck + + - name: Check + env: + _R_CHECK_CRAN_INCOMING_: false + run: | + options(crayon.enabled = TRUE) + rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "error", check_dir = "check") + shell: Rscript {0} + + - name: Show testthat output + if: always() + run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true + shell: bash + + - name: Upload check results + if: failure() + uses: actions/upload-artifact@main + with: + name: ${{ runner.os }}-r${{ matrix.config.r }}-results + path: check diff --git a/.github/workflows/pkgdown.yml b/.github/workflows/pkgdown.yml index b7de09e..b3b742a 100644 --- a/.github/workflows/pkgdown.yml +++ b/.github/workflows/pkgdown.yml @@ -1,4 +1,4 @@ -name: deploy to github pages +name: gh-pages on: push: @@ -13,11 +13,11 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: r-lib/actions/setup-r@master + - uses: r-lib/actions/setup-r@v2 - - uses: r-lib/actions/setup-pandoc@master + - uses: r-lib/actions/setup-pandoc@v2 - name: Query dependencies run: | @@ -40,11 +40,11 @@ jobs: remotes::install_deps(dependencies = TRUE, type="binary") shell: Rscript {0} - - name: Install pkgdown + - name: Install pkgdown run: | install.packages("pkgdown", type = "binary") shell: Rscript {0} - + - name: Install package run: R CMD INSTALL . diff --git a/.github/workflows/runPlatform.yml b/.github/workflows/runPlatform.yml deleted file mode 100644 index 1a3da65..0000000 --- a/.github/workflows/runPlatform.yml +++ /dev/null @@ -1,37 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# -# See https://github.com/r-lib/actions/tree/master/examples#readme for -# additional example workflows available for the R community. - -name: Install on windows - -on: - push: - branches: [ master, main ] - pull_request: - branches: [ master, main ] - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-latest] - r-version: [3.6, 4] - steps: - - uses: actions/checkout@v2 - - name: Set up R ${{ matrix.r-version }} - uses: r-lib/actions/setup-r@v1 - with: - r-version: ${{ matrix.r-version }} - - name: Install dependencies - run: | - install.packages(c("remotes", "rcmdcheck")) - remotes::install_deps(dependencies = TRUE) - shell: Rscript {0} - - name: Check - run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") - shell: Rscript {0} diff --git a/.github/workflows/secretScan.yml b/.github/workflows/secretScan.yml index 51301a6..e8bf43d 100644 --- a/.github/workflows/secretScan.yml +++ b/.github/workflows/secretScan.yml @@ -10,4 +10,4 @@ jobs: with: fetch-depth: '0' - name: gitleaks-action - uses: zricethezav/gitleaks-action@master + uses: gitleaks/gitleaks-action@1.6.0