From 98d695d23a1adf7bf00a34d6ee5f6b0e8f0992e7 Mon Sep 17 00:00:00 2001 From: Frauke Hennig <57798290+FraukeH6@users.noreply.github.com> Date: Mon, 8 Jul 2024 09:42:49 +0200 Subject: [PATCH 1/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 586c88ef..07d41182 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # r.package.example -An example package for the workshop. +An example package for the workshop on gitHub workflows. From 075e0cf333744480d5ecdc53574476ab7193fef6 Mon Sep 17 00:00:00 2001 From: Frauke Hennig <57798290+FraukeH6@users.noreply.github.com> Date: Mon, 8 Jul 2024 09:49:10 +0200 Subject: [PATCH 2/7] Update simple.yaml update name --- .github/workflows/simple.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yaml b/.github/workflows/simple.yaml index b927a9f7..ddc62eab 100644 --- a/.github/workflows/simple.yaml +++ b/.github/workflows/simple.yaml @@ -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. From 12a73fa4438957a4b7a354a2d05e266d451867a3 Mon Sep 17 00:00:00 2001 From: Frauke Hennig <57798290+FraukeH6@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:06:28 +0200 Subject: [PATCH 3/7] Update simple.yaml enable r-setup --- .github/workflows/simple.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yaml b/.github/workflows/simple.yaml index ddc62eab..e21c2e36 100644 --- a/.github/workflows/simple.yaml +++ b/.github/workflows/simple.yaml @@ -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 From 8674c3fa2e135afdf25d73e8565a042e749e9700 Mon Sep 17 00:00:00 2001 From: Frauke Hennig <57798290+FraukeH6@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:11:59 +0200 Subject: [PATCH 4/7] Update simple.yaml enable dependencies --- .github/workflows/simple.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple.yaml b/.github/workflows/simple.yaml index e21c2e36..76223a8e 100644 --- a/.github/workflows/simple.yaml +++ b/.github/workflows/simple.yaml @@ -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 }} From a67b364c309468a95d600f0565e0a248b749f542 Mon Sep 17 00:00:00 2001 From: Frauke Hennig <57798290+FraukeH6@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:20:04 +0200 Subject: [PATCH 5/7] Update test-hello.R fix the failed test --- tests/testthat/test-hello.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-hello.R b/tests/testthat/test-hello.R index e3cfab2a..289310c5 100644 --- a/tests/testthat/test-hello.R +++ b/tests/testthat/test-hello.R @@ -7,5 +7,5 @@ test_that("hello_cli() works", { }) test_that("fix me!!!", { - expect_equal(1, 2) + expect_equal(1, 1) }) From afd74cbc80d6545b71d7f980d72f63619f9ac133 Mon Sep 17 00:00:00 2001 From: Frauke Hennig <57798290+FraukeH6@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:29:58 +0200 Subject: [PATCH 6/7] Update simple.yaml enable building --- .github/workflows/simple.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/simple.yaml b/.github/workflows/simple.yaml index 76223a8e..f4e4bd1b 100644 --- a/.github/workflows/simple.yaml +++ b/.github/workflows/simple.yaml @@ -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 @@ -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 @@ -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 From 1516b9a3c365d87a3e126ae8c470140a4ce1893b Mon Sep 17 00:00:00 2001 From: Frauke Hennig <57798290+FraukeH6@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:58:52 +0200 Subject: [PATCH 7/7] Update README.md add line & branch --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 07d41182..1b3dc712 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,7 @@ An example package for the workshop on gitHub workflows. + + + +