Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #15

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: To check or not to check?
id: check
run: |
echo "run_r_cmd_check=false" >> $GITHUB_OUTPUT
echo "run_r_cmd_check=true" >> $GITHUB_OUTPUT

r-cmd:
name: R CMD Check 🧬
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: cat(paste0("Hello ", Sys.getenv("NAME"), "! 👋"))
shell: Rscript {0}
env:
NAME: "Your name"
NAME: "Lars"

# Second job - by default jobs will run in parallel, unless some dependencies
# are introduced between them.
Expand All @@ -53,7 +53,7 @@ jobs:
path: ${{ github.event.repository.name }}

- name: Setup R 🔧
if: false
if: true # default
# We're using a third-party GitHub Action.
uses: r-lib/actions/setup-r@v2

Expand All @@ -64,7 +64,7 @@ jobs:
- name: Setup R dependencies 🔧
# We're using a third-party GitHub Action.
uses: r-lib/actions/setup-r-dependencies@v2
if: false
if: true
with:
working-directory: ${{ github.event.repository.name }}

Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:

- name: Upload logs artifact 🗞️
uses: actions/upload-artifact@v4
if: false
if: true
with:
path: |
${{ github.event.repository.name }}.Rcheck/*00install.out
Expand All @@ -115,7 +115,7 @@ jobs:
name: check-logs-${{ github.event.repository.name }}

- name: Get `.tar.gz` file name
if: false
if: true
id: tar-gz
# Use our custom action.
uses: user-workshop-cicd/action-example@main
Expand All @@ -124,7 +124,7 @@ jobs:

# Upload `.tar.gz` package as an artifact so it can be downloaded.
- name: Upload package build ⤴
if: false
if: true
uses: actions/upload-artifact@v4
with:
# Output of the custom action from the previous step
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
An example package for the workshop.


This is just a test


for a new branch
2 changes: 1 addition & 1 deletion tests/testthat/test-hello.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ test_that("hello_cli() works", {
})

test_that("fix me!!!", {
expect_equal(1, 2)
expect_equal(1, 1)
})