Maintenance updates

- Add development section to README.
- Add `ncc` as a dev dependency.
- Test latest versions of `just`.
This commit is contained in:
Ross MacArthur
2021-08-23 22:35:16 +02:00
parent 7fef8ee4ca
commit 5675d4c3ba
7 changed files with 627 additions and 501 deletions
+2 -3
View File
@@ -10,7 +10,6 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm install --global @zeit/ncc
- run: npm ci
- run: npm run lint
- run: npm run build
@@ -35,7 +34,7 @@ jobs:
needs: test-latest
strategy:
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
steps:
- uses: actions/checkout@v2
@@ -46,7 +45,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check version
run: just --version | grep "^just v${{ matrix.just-version }}$"
run: just --version | grep -E "^just v?${{ matrix.just-version }}$"
- name: Test
run: |
[ "$(just --justfile tests/Justfile)" = "Test..." ]
+1
View File
@@ -1,3 +1,4 @@
/runner
# Created by https://www.gitignore.io/api/node
# Edit at https://www.gitignore.io/?templates=node
+32 -5
View File
@@ -21,7 +21,7 @@ If you want a specific version of `just` you can specify this by passing the
```yaml
- uses: extractions/setup-just@v1
with:
just-version: 0.9
just-version: 0.10
```
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
- `just-version: '*'` latest version (default).
- `just-version: '0.9'` equivalent to `>=0.9.0 <0.10.0`.
- `just-version: '0.9.x'` equivalent to `>=0.9.0 <0.10.0`.
- `just-version: '0.9.0'` equivalent to `=0.9.0`.
- `just-version: '^0.9.0'` equivalent to `>=0.9.0 <0.10.0`.
- `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](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
+7 -1
View File
File diff suppressed because one or more lines are too long
+583 -491
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -28,6 +28,7 @@
"@types/semver": "^7.3.4",
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/parser": "^4.4.0",
"@vercel/ncc": "^0.29.2",
"eslint": "^7.10.0",
"prettier": "^2.1.2",
"typescript": "^4.0.3"
+1 -1
View File
@@ -39,7 +39,7 @@
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* 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. */
// "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. */