From 72ac2d07c0b9def3aa4faf0a157224ecdcd49df9 Mon Sep 17 00:00:00 2001 From: Dan Grebb Date: Mon, 15 Jan 2024 21:09:50 -0500 Subject: [PATCH] wip: pass in workspace root --- .github/actions/setup-node/action.yml | 4 ++++ .github/workflows/backstop-sanity-test.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index fca8bbf1b..2f0ae3f12 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -1,6 +1,10 @@ name: "Setup Node and Dependencies" description: "Sets up Node, npm caching, and installs dependencies" +inputs: + WORKSPACE_ROOT: + required: true + runs: using: "composite" steps: diff --git a/.github/workflows/backstop-sanity-test.yml b/.github/workflows/backstop-sanity-test.yml index 49b1accd8..9e1769313 100644 --- a/.github/workflows/backstop-sanity-test.yml +++ b/.github/workflows/backstop-sanity-test.yml @@ -31,6 +31,8 @@ jobs: - uses: ./actions/.github/actions/setup-node id: node + with: + WORKSPACE_ROOT: ${{ steps.base.outputs.WORKSPACE_ROOT }} - name: "𓋏 Run `npm run sanity-test`" continue-on-error: true @@ -103,6 +105,8 @@ jobs: - uses: ./actions/.github/actions/setup-node id: node + with: + WORKSPACE_ROOT: ${{ steps.base.outputs.WORKSPACE_ROOT }} - name: "🎭 Run `npm run sanity-test-playwright`" continue-on-error: true