-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jefferson <[email protected]> chore: First implementation
- Loading branch information
0 parents
commit 3e882b2
Showing
17 changed files
with
33,832 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Basic validation | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
push: | ||
branches: | ||
- main | ||
- releases/* | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
call-basic-validation: | ||
name: Basic validation | ||
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main | ||
with: | ||
operating-systems: "['ubuntu-latest', 'macos-latest']" | ||
node-version: '20.x' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Check dist | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
call-check-dist: | ||
name: Check dist/ | ||
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main | ||
with: | ||
node-version: '20.x' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Test Nsolid Action | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
push: | ||
branches: | ||
- main | ||
- releases/* | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
nsolid-version: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
nsolid-version: [5] | ||
node-version: [18, 20] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Nsolid and check latest | ||
uses: ./ | ||
with: | ||
nsolid-version: ${{ matrix.nsolid-version }} | ||
- name: Verify Nsolid | ||
run: | | ||
nsolid -vv | ||
node -vv | ||
- name: Verify Node version | ||
run: | | ||
nsolid -v | ||
node -v | ||
nsolid-latest: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Nsolid from dist | ||
uses: ./ | ||
|
||
- name: Verify Nsolid | ||
run: | | ||
nsolid -vv | ||
node -vv | ||
- name: Verify Node version | ||
run: | | ||
nsolid -v | ||
node -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.pnpm-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/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
web_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional stylelint cache | ||
.stylelintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variable files | ||
.env | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env.local | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Next.js build output | ||
.next | ||
out | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# vuepress v2.x temp and cache directory | ||
.temp | ||
.cache | ||
|
||
# Docusaurus cache and generated files | ||
.docusaurus | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# yarn v2 | ||
.yarn/cache | ||
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 NodeSource | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
![image](https://github.com/nodesource/setup-nsolid/assets/55195249/52173460-1cc3-4e82-8651-45a041106593) | ||
# setup-nsolid | ||
[![Test Nsolid Action](https://github.com/nodesource/setup-nsolid/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/nodesource/setup-nsolid/actions/workflows/ci.yaml) [![Basic validation](https://github.com/nodesource/setup-nsolid/actions/workflows/basic-validation.yaml/badge.svg?branch=main)](https://github.com/nodesource/setup-nsolid/actions/workflows/basic-validation.yaml) [![Check dist](https://github.com/nodesource/setup-nsolid/actions/workflows/check-dist.yml/badge.svg?branch=main)](https://github.com/nodesource/setup-nsolid/actions/workflows/check-dist.yml) | ||
|
||
This action provides the following functionality for GitHub Actions users: | ||
|
||
- Install the latest Nsolid version | ||
- Install any specific Nsolid version | ||
|
||
|
||
## Usage | ||
|
||
See [action.yml](action.yml) | ||
|
||
**Basic Usage:** | ||
|
||
```yaml | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: nodesource/setup-nsolid@v1 | ||
with: | ||
node-version: 20 | ||
nsolid-version: 5 | ||
- run: nsolid -vv | ||
``` | ||
**All options:** | ||
<!-- start usage --> | ||
```yaml | ||
- uses: nodesource/setup-nsolid@v1 | ||
with: | ||
# Version Spec of the version to use in SemVer notation. | ||
# Examples: 18, 18.19.1, 20, 20.11.1, | ||
node-version: '' | ||
|
||
# Nsolid version to use, . E.g: 5, 5.0.5, 4.10.0, latest. | ||
# Examples: 5, 5.0.5, 5.0.1 | ||
nsolid-version: '' | ||
|
||
# Set the platform where you expect to run the action. | ||
# supported options: 'linux', 'darwin', 'win32' | ||
# Default: ''. The action will set the detected platform by default. | ||
platform: '' | ||
|
||
# Target architecture for Nsolide to use. Examples: x86, x64. Will use system architecture by default. | ||
# Default: ''. The action use system architecture by default | ||
arch: '' | ||
``` | ||
<!-- end usage --> | ||
## License | ||
The scripts and documentation in this project are released under the [MIT License](LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 'Setup Nsolid environment' | ||
description: 'Setup a Nsolid environment' | ||
author: 'Nodesource' | ||
inputs: | ||
node-version: | ||
description: 'Node to use, if no values specified we will setup the major version available for the nsolid-version. E.g: 18.x, 20.x.' | ||
nsolid-version: | ||
required: true | ||
description: 'Nsolid version to use. E.g: 5.0.5, 4.10.0, latest.' | ||
platform: | ||
description: 'Target operating system for Nsolid to use. E.g: linux, darwin, win32. Will use linux by default.' | ||
arch: | ||
description: 'Target architecture for Node to use.' | ||
|
||
outputs: | ||
nsolid-version: | ||
description: 'The installed Nsolid version.' | ||
runs: | ||
using: 'node20' | ||
main: 'dist/setup/index.js' | ||
post-if: success() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"lineWidth": 120 | ||
}, | ||
"files": { | ||
"ignore": ["dist/*.js"] | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"all": true, | ||
"nursery": { | ||
"noNodejsModules": "off" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.