Skip to content

Commit

Permalink
Update action workflows
Browse files Browse the repository at this point in the history
Update GitHub Actions workflows to use the latest versions of actions and dependencies.

* **greta-install-deps.yaml**
  - Update `actions/checkout` to `v3`
  - Update `r-lib/actions/setup-r` to `v2`
  - Update `r-lib/actions/setup-pandoc` to `v2`

* **pr-commands.yaml**
  - Update `actions/checkout` to `v3`
  - Update `r-lib/actions/pr-fetch` to `v2`
  - Update `r-lib/actions/setup-r` to `v2`
  - Update `r-lib/actions/pr-push` to `v2`

* **R-CMD-check.yaml**
  - Update `actions/checkout` to `v3`
  - Update `r-lib/actions/setup-r` to `v2`
  - Update `r-lib/actions/check-r-package` to `v2`

* **test-coverage.yaml**
  - Update `actions/checkout` to `v3`
  - Update `r-lib/actions/setup-r` to `v2`
  - Update `actions/cache` to `v3`

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/mtwesley/greta.censored?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
mtwesley committed Nov 25, 2024
1 parent 78b3a15 commit 8d94f16
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

steps:

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

- uses: r-lib/actions/setup-r@v2
id: install-r
Expand Down Expand Up @@ -105,4 +105,3 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran", "--no-multiarch")'

6 changes: 3 additions & 3 deletions .github/workflows/greta-install-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

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

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

- name: Fix Conda permissions on macOS
if: runner.os == 'macOS'
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/pr-fetch@v1
- uses: actions/checkout@v3
- uses: r-lib/actions/pr-fetch@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
- name: Install dependencies
run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE)'
- name: Document
Expand All @@ -25,7 +25,7 @@ jobs:
git config --local user.name "GitHub Actions"
git add man/\* NAMESPACE
git commit -m 'Document'
- uses: r-lib/actions/pr-push@v1
- uses: r-lib/actions/pr-push@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
style:
Expand All @@ -35,11 +35,11 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/pr-fetch@v1
- uses: actions/checkout@v3
- uses: r-lib/actions/pr-fetch@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
- name: Install dependencies
run: Rscript -e 'install.packages("styler")'
- name: Style
Expand All @@ -50,6 +50,6 @@ jobs:
git config --local user.name "GitHub Actions"
git add \*.R
git commit -m 'Style'
- uses: r-lib/actions/pr-push@v1
- uses: r-lib/actions/pr-push@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

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

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

Expand All @@ -30,7 +30,7 @@ jobs:
shell: Rscript {0}

- name: Restore R package cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

## greta.censored: Censored distributions in greta
Expand Down

0 comments on commit 8d94f16

Please sign in to comment.