-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add actions for devel testing on release and website docs
- Loading branch information
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Release Testing on Devel | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'release/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
version_check: | ||
name: Confirm Whole Version Number | ||
runs-on: ubuntu-latest | ||
shell: bash | ||
run: grep -E "Version:\s\d+\.\d+\.\d+$" DESCRIPTION | ||
devel_test: | ||
name: ${{ matrix.os }} (R ${{ matrix.r-version }}) | ||
needs: [version_check] | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
r-version: 'devel' | ||
- os: macos-latest | ||
r-version: 'devel' | ||
- os: windows-latest | ||
r-version: 'devel' | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- name: Install Tidy Ubuntu | ||
if: matrix.os == 'ubuntu-devel' | ||
run: sudo apt install -y tidy | ||
- name: set up R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: ${{ matrix.r-version }} | ||
- uses: r-lib/actions/setup-pandoc@v2 | ||
- uses: r-lib/actions/setup-tinytex@v2 | ||
- name: set up dependencies | ||
shell: bash | ||
env: | ||
OS_NAME: ${{ matrix.os }} | ||
run: $GITHUB_WORKSPACE/.github/setup.sh | ||
- name: run R CMD CHECK tests | ||
shell: bash | ||
run: $GITHUB_WORKSPACE/test.sh | ||
all-successful: | ||
runs-on: ubuntu-latest | ||
needs: [devel_test] | ||
steps: | ||
- name: Note that all tests succeeded | ||
run: echo "🎉" | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: update website docs | ||
|
||
# only build on new tagged versions (OR manually specified) | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
version_check: | ||
name: Confirm Whole Version Number | ||
runs-on: ubuntu-latest | ||
shell: bash | ||
run: grep -E "Version:\s\d+\.\d+\.\d+$" DESCRIPTION | ||
build-website: | ||
name: build website PR | ||
needs: [version_check] | ||
runs-on: macos-latest | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- name: set up R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: 'release' | ||
- uses: r-lib/actions/setup-pandoc@v2 | ||
- uses: r-lib/actions/setup-tinytex@v2 | ||
- name: set up dependencies | ||
shell: bash | ||
env: | ||
OS_NAME: 'macos-latest' | ||
run: $GITHUB_WORKSPACE/.github/setup.sh | ||
- name: Build Site | ||
run: pkgdown::build_site() | ||
shell: Rscript {0} | ||
- name: Commit and push changes for review | ||
run: | | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git add man/\* NAMESPACE DESCRIPTION | ||
git commit -m "Update documentation" || echo "No changes to commit" | ||
git pull --ff-only | ||
git push origin |