Skip to content

Commit

Permalink
update GHA to checkout@v3 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpprdan committed Oct 24, 2022
1 parent ad7ff7d commit 56e6f8b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release', oc_auth: OPENCAGE_KEY}
- {os: macos-latest, r: 'release', oc_auth: OPENCAGE_KEY}
- {os: windows-latest, r: 'release', oc_auth: OPENCAGE_NOKEY}
- {os: ubuntu-latest, r: 'devel', oc_auth: OPENCAGE_NOKEY, http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release', oc_auth: OPENCAGE_NOKEY}
Expand All @@ -30,7 +30,7 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Expand Up @@ -13,7 +13,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
23 changes: 21 additions & 2 deletions .github/workflows/test-coverage.yaml
Expand Up @@ -17,7 +17,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -31,5 +31,24 @@ jobs:
- name: Test coverage
env:
OPENCAGE_KEY: ${{ secrets.OPENCAGE_KEY }}
run: covr::codecov(quiet = FALSE)
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
)
shell: Rscript {0}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
2 changes: 1 addition & 1 deletion .github/workflows/update-citation-cff.yaml
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Expand Up @@ -9,7 +9,7 @@
## Internals

* {opencage} now uses [{testthat} 3e](https://testthat.r-lib.org/articles/third-edition.html) for unit tests ([#141](https://github.com/ropensci/opencage/issues/141)).
* GitHub actions workflows updated ([#142](https://github.com/ropensci/opencage/issues/142)).
* GitHub actions workflows updated ([#142](https://github.com/ropensci/opencage/issues/142), [#149](https://github.com/ropensci/opencage/pull/149)).
* Use [{lintr} version 3.0](https://www.tidyverse.org/blog/2022/07/lintr-3-0-0/) and add "package development" linters ([#144](https://github.com/ropensci/opencage/pull/144)).
* `countrycodes` source and script were moved to `data-raw` ([#146](https://github.com/ropensci/opencage/pull/146)).
* Add CITATION.cff and a corresponding GitHub action ([#148](https://github.com/ropensci/opencage/pull/148)).
Expand Down

0 comments on commit 56e6f8b

Please sign in to comment.