Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 905 Bytes

DEVELOPMENT.md

File metadata and controls

43 lines (30 loc) · 905 Bytes

Install Node.js

To develop and test the action, you need to install Node.js. To install Node.js, use your OS package manager or follow the instruction on the Node.js website.

Install Dependencies

npm install

Lint Code

npm run lint-fix

Bundle Action

npm run build

It is important to bundle the action before running it locally or pushing it to the remote repository.

Run Local Tests

To run the action locally, set the RUNNER_TEMP environment variable to a temporary directory. Then use the run script to execute the action:

export RUNNER_TEMP=/tmp/runner_temp 
npm run run

To provide input variables to the action, set the environment variables before running the action:

INPUT_PLATFORM=macOS INPUT_VERSION=1.23.0 INPUT_ARCHITECTURE=x86_64 npm run run