From c72804fb3660c660bd2824fac1a8abdf610c7a58 Mon Sep 17 00:00:00 2001 From: Kamil Zyla Date: Thu, 28 Dec 2023 11:12:04 +0100 Subject: [PATCH 1/2] ci: Update and clean up actions --- .github/workflows/ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6f4076..1910b81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,12 +7,13 @@ jobs: timeout-minutes: 30 steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install R uses: r-lib/actions/setup-r@v2 with: - r-version: '4.2.0' + r-version: '4.3.2' + use-public-rspm: true - name: Install R package dependencies uses: r-lib/actions/setup-r-dependencies@v2 @@ -24,16 +25,13 @@ jobs: uses: r-lib/actions/check-r-package@v2 with: error-on: '"note"' - env: - _R_CHECK_LICENSE_: 'FALSE' # We are using a proprietary license. - name: Lint if: always() shell: Rscript {0} - run: | - lints <- lintr::lint_package() - for (lint in lints) print(lint) - quit(status = length(lints) > 0) + run: lintr::lint_package() + env: + LINTR_ERROR_ON_LINT: true - name: E2E test if: always() @@ -43,5 +41,5 @@ jobs: start: yarn run-showcase - name: Test coverage - run: | - Rscript -e 'covr::codecov()' + shell: Rscript {0} + run: covr::codecov() From 1025f5f81e3bc9b1c5b25c113cc520efba1f6ff4 Mon Sep 17 00:00:00 2001 From: Kamil Zyla Date: Thu, 28 Dec 2023 11:14:49 +0100 Subject: [PATCH 2/2] ci: Upgrade Cypress action --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1910b81..abff7d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: E2E test if: always() - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v6 with: working-directory: js start: yarn run-showcase