Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed May 15, 2024
1 parent 7cf90b6 commit 4f97b7c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
# Actions and click I understand my workflows...

# For reference, this is how the full list of steps will look like:
# Remove just a single # character at the beginning of line to uncomment.
#
#env:
# ENABLED_STEPS: |
Expand All @@ -45,7 +46,7 @@ jobs:

steps:
- name: Checkout repo 🛎
# This means we're actually using a GitHub Action.
# This means we're actually using an official GitHub Action.
uses: actions/[email protected]
if: contains(env.ENABLED_STEPS, 'checkout_repository')
with:
Expand All @@ -54,8 +55,7 @@ jobs:
- name: Get package name 📦
if: contains(env.ENABLED_STEPS, 'get_package_name')
run: |
PKGBUILD="$(echo $(awk -F: '/Package:/{gsub(/[ ]+/,"") ; print $2}' DESCRIPTION)_"\
"$(awk -F: '/Version:/{gsub(/[ ]+/,"") ; print $2}' DESCRIPTION).tar.gz)"
PKGBUILD="$(Rscript -e 'cat(sprintf("%s_%s.tar.gz",(dcf <- read.dcf("DESCRIPTION"))[,"Package"], dcf[,"Version"]))')"
echo "PKGBUILD = $PKGBUILD"
echo "PKGBUILD=$PKGBUILD" >> $GITHUB_ENV
shell: bash
Expand All @@ -69,7 +69,8 @@ jobs:

# TODO Decide if we use an image with these packages installed,
# or we want to show how to install them (takes 2-3 minutes).
# Additionally, LaTeX is needed to create manual.
# Additionally, LaTeX is needed to create manual,
# so rocker/verse is working well for this purpose.
# - name: Install packages
# run:
# install.packages(c("cli", "testthat"))
Expand All @@ -78,7 +79,7 @@ jobs:
- name: Run R CMD check 🏁
if: contains(env.ENABLED_STEPS, 'run_r_cmd_check')
run: |
R CMD check ${{ env.PKGBUILD }}
R CMD check ${{ env.PKGBUILD }}
shell: bash
env:
_R_CHECK_TESTS_NLINES_: 0
Expand Down

0 comments on commit 4f97b7c

Please sign in to comment.