Skip to content

Commit e8fa8d3

Browse files
Convert to composite action (#19)
1 parent 6e1de3c commit e8fa8d3

File tree

10 files changed

+17
-2347
lines changed

10 files changed

+17
-2347
lines changed

.eslintrc.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/build.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@ on:
66
- cron: 0 12 1 * *
77

88
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: '20.x'
16-
- run: npm ci
17-
- run: npm run lint
18-
- run: npm run build
19-
209
test-latest:
2110
strategy:
2211
matrix:
@@ -37,7 +26,7 @@ jobs:
3726
needs: test-latest
3827
strategy:
3928
matrix: # https://github.com/casey/just/releases
40-
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]
29+
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]
4130
runs-on: ubuntu-latest
4231
steps:
4332
- uses: actions/checkout@v4

.gitignore

Lines changed: 0 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1 @@
11
/runner
2-
3-
# Created by https://www.gitignore.io/api/node
4-
# Edit at https://www.gitignore.io/?templates=node
5-
6-
### Node ###
7-
# Logs
8-
logs
9-
*.log
10-
npm-debug.log*
11-
yarn-debug.log*
12-
yarn-error.log*
13-
lerna-debug.log*
14-
15-
# Diagnostic reports (https://nodejs.org/api/report.html)
16-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
17-
18-
# Runtime data
19-
pids
20-
*.pid
21-
*.seed
22-
*.pid.lock
23-
24-
# Directory for instrumented libs generated by jscoverage/JSCover
25-
lib-cov
26-
27-
# Coverage directory used by tools like istanbul
28-
coverage
29-
*.lcov
30-
31-
# nyc test coverage
32-
.nyc_output
33-
34-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
35-
.grunt
36-
37-
# Bower dependency directory (https://bower.io/)
38-
bower_components
39-
40-
# node-waf configuration
41-
.lock-wscript
42-
43-
# Compiled binary addons (https://nodejs.org/api/addons.html)
44-
build/Release
45-
46-
# Dependency directories
47-
node_modules/
48-
jspm_packages/
49-
50-
# TypeScript v1 declaration files
51-
typings/
52-
53-
# TypeScript cache
54-
*.tsbuildinfo
55-
56-
# Optional npm cache directory
57-
.npm
58-
59-
# Optional eslint cache
60-
.eslintcache
61-
62-
# Optional REPL history
63-
.node_repl_history
64-
65-
# Output of 'npm pack'
66-
*.tgz
67-
68-
# Yarn Integrity file
69-
.yarn-integrity
70-
71-
# dotenv environment variables file
72-
.env
73-
.env.test
74-
75-
# parcel-bundler cache (https://parceljs.org/)
76-
.cache
77-
78-
# next.js build output
79-
.next
80-
81-
# nuxt.js build output
82-
.nuxt
83-
84-
# rollup.js default build output
85-
dist/*
86-
!dist/index.js
87-
88-
# Uncomment the public line if your project uses Gatsby
89-
# https://nextjs.org/blog/next-9-1#public-directory-support
90-
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
91-
# public
92-
93-
# Storybook build outputs
94-
.out
95-
.storybook-out
96-
97-
# vuepress build output
98-
.vuepress/dist
99-
100-
# Serverless directories
101-
.serverless/
102-
103-
# FuseBox cache
104-
.fusebox/
105-
106-
# DynamoDB Local files
107-
.dynamodb/
108-
109-
# Temporary folders
110-
tmp/
111-
temp/
112-
113-
# End of https://www.gitignore.io/api/node

README.md

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,12 @@ If you want a specific version of `just` you can specify this by passing the
2121
```yaml
2222
- uses: extractions/setup-just@v2
2323
with:
24-
just-version: '1.4.0'
24+
just-version: '1.40.0'
2525
```
2626

2727
To avoid rate-limiting, the default Github token available to all actions, is
28-
automatically used to authenticate calls to Github. To override it, set the
29-
environment variable `GITHUB_TOKEN` or pass the input `github-token`.
30-
31-
```yaml
32-
- uses: extractions/setup-just@v2
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
```
36-
37-
or
28+
automatically used to authenticate calls to Github. To override it, pass the
29+
input `github-token`.
3830

3931
```yaml
4032
- uses: extractions/setup-just@v2
@@ -54,38 +46,17 @@ package](https://www.npmjs.com/package/semver). This GitHub Action will install
5446
the latest matching release. Examples include
5547

5648
- `just-version: '*'` latest version (default).
57-
- `just-version: '0.10'` equivalent to `>=0.10.0 <0.11.0`.
58-
- `just-version: '0.10.x'` equivalent to `>=0.10.0 <0.11.0`.
59-
- `just-version: '0.10.0'` equivalent to `=0.10.0`.
60-
- `just-version: '^0.10.0'` equivalent to `>=0.10.0 <0.11.0`.
49+
- `just-version: '1'` equivalent to `>=1.0.0 <2.0.0`.
50+
- `just-version: '1.2'` equivalent to `>=1.2.0 <2.0.0`.
51+
- `just-version: '1.2.3'` equivalent to `=1.2.3`.
52+
- `just-version: '^1.2.3'` equivalent to `>=1.2.3 <2.0.0`.
6153

6254
## Development
6355

64-
Most of the installation logic is done in a shared library located at
56+
This action is a composite action and the installation logic is done in a shared
57+
library located at
6558
[@extractions/setup-crate](https://github.com/extractions/setup-crate).
6659

67-
The following commands are useful for development.
68-
69-
- `npm i`
70-
71-
Install all dependencies.
72-
73-
- `npm run fmt`
74-
75-
Format the source code.
76-
77-
- `npm run lint`
78-
79-
Run all lints.
80-
81-
- `npm run run`
82-
83-
Test the action by running it.
84-
85-
- `npm run build`
86-
87-
Build the action and update `dist/`.
88-
8960
## License
9061

9162
Licensed under either of

action.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@ inputs:
1212
required: false
1313
default: ${{ github.token }}
1414
runs:
15-
using: 'node20'
16-
main: 'dist/index.js'
15+
using: composite
16+
steps:
17+
- uses: extractions/setup-crate@v1
18+
with:
19+
repo: casey/just
20+
version: ${{ inputs.just-version }}
21+
github-token: ${{ inputs.github-token }}

dist/index.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)