From 47b249a7b1fe7bddf667d7ee9f339aa6c3acdf1b Mon Sep 17 00:00:00 2001 From: Christopher Suh Date: Wed, 4 Aug 2021 14:52:45 -0400 Subject: [PATCH] keytar ci build fix (#16555) --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8bf3bd8bf..c74e2dce38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -204,6 +204,14 @@ jobs: - name: Compile and Download run: yarn npm-run-all --max_old_space_size=4095 -lp compile "electron x64" playwright-install download-builtin-extensions + # This is required for keytar unittests, otherwise we hit + # https://github.com/atom/node-keytar/issues/76 + - name: Create temporary keychain + run: | + security create-keychain -p pwd $RUNNER_TEMP/buildagent.keychain + security default-keychain -s $RUNNER_TEMP/buildagent.keychain + security unlock-keychain -p pwd $RUNNER_TEMP/buildagent.keychain + - name: Run Unit Tests (Electron) run: DISPLAY=:10 ./scripts/test.sh