Skip to content

Commit 97eb64e

Browse files
committed
fix: composite action
1 parent ce890f9 commit 97eb64e

File tree

3 files changed

+21
-25
lines changed

3 files changed

+21
-25
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Setup environment'
2+
description: 'Setup environment'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: Setup Node.js
7+
uses: actions/setup-node@v4
8+
with:
9+
node-version: 'lts/*'
10+
11+
- run: corepack enable
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version-file: '.nvmrc'
17+
cache: yarn
18+
19+
- name: Install dependencies
20+
run: yarn --immutable

.github/workflows/run-unit-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
uses: actions/checkout@v4
1313

1414
- name: Setup environment
15-
uses: MetaMask/metamask-extension/.github/workflows/setup-environment.yml@move-unit-tests-to-github-actions
15+
uses: ./.github/actions/setup-environment
1616

1717
- name: test:coverage:jest:dev
1818
run: yarn test:coverage:jest:dev

.github/workflows/setup-environment.yml

-24
This file was deleted.

0 commit comments

Comments
 (0)