Skip to content

Commit

Permalink
wip: move setup node
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Jan 16, 2024
1 parent b93484d commit 5fa116d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/actions/setup-base/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,3 @@ runs:
run: |
WORKSPACE_ROOT=$GITHUB_WORKSPACE
echo "WORKSPACE_ROOT=$WORKSPACE_ROOT" | tee -a $GITHUB_OUTPUT
- name: ⬢ Setup Node & Cache
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
cache-dependency-path: package-lock.json

- name: ↧ Install
shell: bash
run: npm ci
16 changes: 16 additions & 0 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Setup Node and Dependencies"
description: "Sets up Node, npm caching, and installs dependencies"

runs:
using: "composite"
steps:
- name: ⬢ Setup Node & Cache
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
cache-dependency-path: package-lock.json

- name: ↧ Install
shell: bash
run: npm ci
3 changes: 3 additions & 0 deletions .github/workflows/backstop-sanity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
git clone -b ${{ github.head_ref || github.ref_name }} https://github.com/${{ github.repository }}.git ${{ steps.base.outputs.WORKSPACE_ROOT }}
ls ${{ steps.base.outputs.WORKSPACE_ROOT }}
- uses: ./actions/.github/actions/setup-node
id: node

- name: "𓋏 Run `npm run sanity-test`"
continue-on-error: true
shell: bash
Expand Down

0 comments on commit 5fa116d

Please sign in to comment.