From 86613c925934e9e792a0820a96bf3d3914f059d3 Mon Sep 17 00:00:00 2001 From: Kamil Zyla Date: Fri, 14 Jun 2024 16:07:39 +0200 Subject: [PATCH] ci: set GITHUB_PAT to avoid random E2E failures --- .github/workflows/e2e-test.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 83cabbbf..227ce889 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -7,8 +7,11 @@ on: workflow_dispatch: defaults: - run: - working-directory: ./tests/e2e/ + run: + working-directory: ./tests/e2e/ + +permissions: + contents: read jobs: main: @@ -68,6 +71,10 @@ jobs: run: | cd RhinoApp Rscript ../test-dependencies.R + env: + # Without `GITHUB_PAT`, `renv::install()` fails randomly on macOS + # when installing packages from GitHub (see issue #591). + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - name: Node.js commands should respect RHINO_NPM # Skip this test on Windows because it requires a Unix shell.