mirror of
https://github.com/extractions/setup-just
synced 2026-09-14 20:13:55 +00:00
Maintenance updates
- Add development section to README. - Add `ncc` as a dev dependency. - Test latest versions of `just`.
This commit is contained in:
@@ -10,7 +10,6 @@ jobs:
|
|||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
- run: npm install --global @zeit/ncc
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
@@ -35,7 +34,7 @@ jobs:
|
|||||||
needs: test-latest
|
needs: test-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
just-version: [0.4.5, 0.5.11, 0.6.1, 0.7.3, 0.8.7, 0.9.0]
|
just-version: [0.5.11, 0.6.1, 0.7.3, 0.8.7, 0.9.9, 0.10.0]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -46,7 +45,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Check version
|
- name: Check version
|
||||||
run: just --version | grep "^just v${{ matrix.just-version }}$"
|
run: just --version | grep -E "^just v?${{ matrix.just-version }}$"
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
[ "$(just --justfile tests/Justfile)" = "Test..." ]
|
[ "$(just --justfile tests/Justfile)" = "Test..." ]
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/runner
|
||||||
|
|
||||||
# Created by https://www.gitignore.io/api/node
|
# Created by https://www.gitignore.io/api/node
|
||||||
# Edit at https://www.gitignore.io/?templates=node
|
# Edit at https://www.gitignore.io/?templates=node
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ If you want a specific version of `just` you can specify this by passing the
|
|||||||
```yaml
|
```yaml
|
||||||
- uses: extractions/setup-just@v1
|
- uses: extractions/setup-just@v1
|
||||||
with:
|
with:
|
||||||
just-version: 0.9
|
just-version: 0.10
|
||||||
```
|
```
|
||||||
|
|
||||||
In rare circumstances you might get rate limiting errors, this is because this
|
In rare circumstances you might get rate limiting errors, this is because this
|
||||||
@@ -45,10 +45,37 @@ package](https://www.npmjs.com/package/semver). This GitHub Action will install
|
|||||||
the latest matching release. Examples include
|
the latest matching release. Examples include
|
||||||
|
|
||||||
- `just-version: '*'` latest version (default).
|
- `just-version: '*'` latest version (default).
|
||||||
- `just-version: '0.9'` equivalent to `>=0.9.0 <0.10.0`.
|
- `just-version: '0.10'` equivalent to `>=0.10.0 <0.11.0`.
|
||||||
- `just-version: '0.9.x'` equivalent to `>=0.9.0 <0.10.0`.
|
- `just-version: '0.10.x'` equivalent to `>=0.10.0 <0.11.0`.
|
||||||
- `just-version: '0.9.0'` equivalent to `=0.9.0`.
|
- `just-version: '0.10.0'` equivalent to `=0.10.0`.
|
||||||
- `just-version: '^0.9.0'` equivalent to `>=0.9.0 <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](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
|
## License
|
||||||
|
|
||||||
|
|||||||
Vendored
+7
-1
File diff suppressed because one or more lines are too long
Generated
+583
-491
File diff suppressed because it is too large
Load Diff
@@ -28,6 +28,7 @@
|
|||||||
"@types/semver": "^7.3.4",
|
"@types/semver": "^7.3.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.4.0",
|
"@typescript-eslint/eslint-plugin": "^4.4.0",
|
||||||
"@typescript-eslint/parser": "^4.4.0",
|
"@typescript-eslint/parser": "^4.4.0",
|
||||||
|
"@vercel/ncc": "^0.29.2",
|
||||||
"eslint": "^7.10.0",
|
"eslint": "^7.10.0",
|
||||||
"prettier": "^2.1.2",
|
"prettier": "^2.1.2",
|
||||||
"typescript": "^4.0.3"
|
"typescript": "^4.0.3"
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@
|
|||||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
/* Module Resolution Options */
|
/* Module Resolution Options */
|
||||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
||||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
||||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
||||||
|
|||||||
Reference in New Issue
Block a user