diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index a96a6f22..58ebcb83 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -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 ๐Ÿงฌ diff --git a/.github/workflows/simple.yaml b/.github/workflows/simple.yaml index b927a9f7..75e29d5e 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: "EKP" # Second job - by default jobs will run in parallel, unless some dependencies # are introduced between them. @@ -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 @@ -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 }} @@ -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 @@ -136,4 +136,4 @@ jobs: name: Reusable workflow โ™ป๏ธ uses: user-workshop-cicd/r.pkg.template/.github/workflows/sample-reusable-workflow.yaml@main with: - name: Octocat + name: Eric diff --git a/README.md b/README.md index 586c88ef..dac21a01 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # r.package.example + + + + An example package for the workshop. 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) })