Skip to content

zwoo-hq/setup-zwooc

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

⚙️ zwooc Action

Continuous IntegrationCodeQL

About

This action sets up the zwoo build tool, zwooc, on GitHub's hosted Actions runners.

This action can be run on ubuntu-latest, windows-latest, and macos-latest GitHub Actions runners, and will install and expose a specified version of the zwooc CLI on the runner environment.

Usage

Setup zwooc:

steps:
  - uses: zwoo-hq/setup-zwooc@v1

A specific version of zwooc can be installed:

steps:
  - uses: zwoo-hq/setup-zwooc@v1
    with:
      version: <version>

Inputs

The actions supports the following inputs:

Name Type Description Default Required
version String zwooc version (or latest) latest false

Develop

Requires node >= 20

Install the dependencies

$ npm install

Build the TypeScript and package it for distribution

$ npm run build && npm run package

Run the tests ✔️

$ npm test

 PASS  __tests__/main.test.ts
  ✓ gets download url to binary (3 ms)
  ✓ test runs (891 ms)

...

Publish to a distribution branch

Actions are run from GitHub repository so we will checkin the packed dist folder.

  1. Create a new GitHub release
  2. Rebase v1 branch on main

Your action is now published! 🚀

See the versioning documentation

Validate

You can now validate the action by referencing ./ in a workflow in your repository (see test.yml)

uses: ./
with:
  version: latest

See the actions tab for runs of this action! 🚀