Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 953 Bytes

File metadata and controls

26 lines (18 loc) · 953 Bytes

Composite Action

This is a simple composite action taken from the Github docs. You can take a look at what it does in action.yml

Running tests

Without log file

npm test

With log file

ACT_LOG=true npm test

The above produces a log file called composite.log

Testing Strategy

We are going to test this by running this custom action in a workflow inside a local git repository.
Steps (refer to action.test.ts for implementation):

  1. Create a workflow file that utilizes this action. Refer to action-test.yml
  2. Create a local git repository using mock-github and initialize it with the action.yml file and the workflow file we created in step 1
  3. Use act-js to run the workflow inside the local git repository and compare expected output