Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: extractions/setup-just
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2
Choose a base ref
...
head repository: extractions/setup-just
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3
Choose a head ref
  • 4 commits
  • 11 files changed
  • 3 contributors

Commits on Mar 31, 2024

  1. doc: update example code with the latest gha version (#16)

    zzztimbo authored Mar 31, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    d91bfae View commit details

Commits on May 18, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    6e1de3c View commit details

Commits on Mar 15, 2025

  1. Convert to composite action (#19)

    rossmacarthur authored Mar 15, 2025
    Copy the full SHA
    e8fa8d3 View commit details
  2. This is 3.0.0

    rossmacarthur committed Mar 15, 2025
    Copy the full SHA
    e33e026 View commit details
Showing with 33 additions and 2,350 deletions.
  1. +0 −24 .eslintrc.json
  2. +13 −0 .github/dependabot.yml
  3. +1 −12 .github/workflows/build.yaml
  4. +0 −112 .gitignore
  5. +12 −41 README.md
  6. +7 −2 action.yaml
  7. +0 −9 dist/index.js
  8. +0 −2,021 package-lock.json
  9. +0 −36 package.json
  10. +0 −27 src/index.ts
  11. +0 −66 tsconfig.json
24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Keep GitHub Actions up to date with GitHub's Dependabot...
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
version: 2
updates:
- package-ecosystem: github-actions
directory: /
groups:
github-actions:
patterns:
- "*" # Group all Actions updates into a single larger pull request
schedule:
interval: weekly
13 changes: 1 addition & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -6,17 +6,6 @@ on:
- cron: 0 12 1 * *

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run lint
- run: npm run build

test-latest:
strategy:
matrix:
@@ -37,7 +26,7 @@ jobs:
needs: test-latest
strategy:
matrix: # https://github.com/casey/just/releases
just-version: [0.5.11, 0.6.1, 0.7.3, 0.8.7, 0.9.9, 0.10.7, 0.11.2, 1.5.0, 1.23.0]
just-version: [0.5.11, 0.6.1, 0.7.3, 0.8.7, 0.9.9, 0.10.7, 0.11.2, 1.5.0, 1.23.0, 1.40.0]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
112 changes: 0 additions & 112 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,113 +1 @@
/runner

# Created by https://www.gitignore.io/api/node
# Edit at https://www.gitignore.io/?templates=node

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# rollup.js default build output
dist/*
!dist/index.js

# Uncomment the public line if your project uses Gatsby
# https://nextjs.org/blog/next-9-1#public-directory-support
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
# public

# Storybook build outputs
.out
.storybook-out

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Temporary folders
tmp/
temp/

# End of https://www.gitignore.io/api/node
53 changes: 12 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
@@ -12,32 +12,24 @@ This GitHub Action will install a release of the
In most cases all you will need is the following in your workflow.

```yaml
- uses: extractions/setup-just@v1
- uses: extractions/setup-just@v3
```
If you want a specific version of `just` you can specify this by passing the
`just-version` input.

```yaml
- uses: extractions/setup-just@v1
- uses: extractions/setup-just@v3
with:
just-version: '1.4.0'
just-version: '1.40.0'
```

To avoid rate-limiting, the default Github token available to all actions, is
automatically used to authenticate calls to Github. To override it, set the
environment variable `GITHUB_TOKEN` or pass the input `github-token`.
automatically used to authenticate calls to Github. To override it, pass the
input `github-token`.

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

or

```yaml
- uses: extractions/setup-just@v1
- uses: extractions/setup-just@v3
with:
github-token: ${{ secrets.MY_GITHUB_TOKEN }}
```
@@ -54,38 +46,17 @@ package](https://www.npmjs.com/package/semver). 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`.
- `just-version: '1'` equivalent to `>=1.0.0 <2.0.0`.
- `just-version: '1.2'` equivalent to `>=1.2.0 <2.0.0`.
- `just-version: '1.2.3'` equivalent to `=1.2.3`.
- `just-version: '^1.2.3'` equivalent to `>=1.2.3 <2.0.0`.

## Development

Most of the installation logic is done in a shared library located at
This action is a composite action and the installation logic is done in a shared
library located at
[@extractions/setup-crate](https://github.com/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
9 changes: 7 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -12,5 +12,10 @@ inputs:
required: false
default: ${{ github.token }}
runs:
using: 'node20'
main: 'dist/index.js'
using: composite
steps:
- uses: extractions/setup-crate@v1
with:
repo: casey/just
version: ${{ inputs.just-version }}
github-token: ${{ inputs.github-token }}
9 changes: 0 additions & 9 deletions dist/index.js

This file was deleted.

Loading