2022-09-25 21:39:40 +02:00
2022-09-25 21:39:40 +02:00
2022-09-25 21:39:40 +02:00
2022-09-25 21:39:40 +02:00
2020-10-08 22:59:30 +02:00
2020-05-02 21:11:52 +02:00
2021-08-23 22:35:16 +02:00
2022-09-25 21:39:40 +02:00
2020-05-02 22:22:05 +02:00
2020-05-02 22:22:05 +02:00
2022-09-25 21:39:40 +02:00
2022-09-25 21:39:40 +02:00
2021-09-13 18:39:17 +02:00
2021-08-23 22:35:16 +02:00

🤖 setup-just action

build

This GitHub Action will install a release of the just command runner for you.

Usage

Examples

In most cases all you will need is the following in your workflow.

- uses: extractions/setup-just@v1

If you want a specific version of just you can specify this by passing the just-version input.

- uses: extractions/setup-just@v1
  with:
    just-version: '0.10'

In rare circumstances you might get rate limiting errors, this is because this workflow has to make requests to GitHub API in order to list available releases. If this happens you can set the GITHUB_TOKEN environment variable.

- uses: extractions/setup-just@v1
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Inputs

Name Required Description Type Default
just-version no A valid NPM-style semver specification. string *

The semver specification is passed directly to NPM's semver package. This GitHub Action will install the latest matching release. Examples include

  • just-version: '*' latest version (default).
  • just-version: '0.10' equivalent to >=0.10.0 <0.11.0.
  • just-version: '0.10.x' equivalent to >=0.10.0 <0.11.0.
  • just-version: '0.10.0' equivalent to =0.10.0.
  • just-version: '^0.10.0' equivalent to >=0.10.0 <0.11.0.

Development

Most of the installation logic is done in a shared library located at @extractions/setup-crate.

The following commands are useful for development.

  • npm i

    Install all dependencies.

  • npm run fmt

    Format the source code.

  • npm run lint

    Run all lints.

  • npm run run

    Test the action by running it.

  • npm run build

    Build the action and update dist/.

License

Licensed under either of

at your option.

S
Description
mirror of github.com/extractions/setup-just
Readme
642 KiB
Languages
Just 100%