Skip to content
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
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: "Frauke"

# 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
# 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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# r.package.example


An example package for the workshop.
An example package for the workshop on gitHub workflows.






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)
})