Merge CI actions
This commit is contained in:
parent
410b704d3d
commit
33b4892dfb
|
@ -1,21 +0,0 @@
|
||||||
name: Lint
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: 14.16.0
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run eslint
|
|
|
@ -1,26 +0,0 @@
|
||||||
name: Test
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: 14.16.0
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run test-build
|
|
||||||
- run: npm run test-ci
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
name: Validate
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Validate:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Fetch Repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 14.16.0
|
||||||
|
|
||||||
|
- name: Install Modules
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build Sample Addon
|
||||||
|
run: npm run test-build
|
||||||
|
|
||||||
|
- name: Run Lint
|
||||||
|
run: npm run eslint
|
||||||
|
|
||||||
|
- name: Run Unit Tests
|
||||||
|
run: npm run test-ci
|
12
README.md
12
README.md
|
@ -33,35 +33,35 @@ additional snippets follow the links below.
|
||||||
## index.js
|
## index.js
|
||||||
|
|
||||||
Main exports for cross-platform addon configuration.
|
Main exports for cross-platform addon configuration.
|
||||||
See [TypeScript definitions](/index.d.ts).
|
See [TypeScript definitions](/index.d.ts) with comments.
|
||||||
|
|
||||||
|
|
||||||
## download.js
|
## download.js
|
||||||
|
|
||||||
Downloads a file into the memory, **HTTP** or **HTTPS**.
|
Downloads a file into the memory, **HTTP** or **HTTPS**.
|
||||||
See [TypeScript definitions](/download.d.ts).
|
See [TypeScript definitions](/download.d.ts) with comments.
|
||||||
|
|
||||||
|
|
||||||
## cpbin.js
|
## cpbin.js
|
||||||
|
|
||||||
Downloads a file into the memory, **HTTP** or **HTTPS**.
|
Downloads a file into the memory, **HTTP** or **HTTPS**.
|
||||||
See [TypeScript definitions](/cpbin.d.ts).
|
See [TypeScript definitions](/cpbin.d.ts) with comments.
|
||||||
|
|
||||||
|
|
||||||
## install.js
|
## install.js
|
||||||
|
|
||||||
Downloads and unzips the platform specific binary for the calling package.
|
Downloads and unzips the platform specific binary for the calling package.
|
||||||
See [TypeScript definitions](/install.d.ts).
|
See [TypeScript definitions](/install.d.ts) with comments.
|
||||||
|
|
||||||
|
|
||||||
## writable-buffer.js
|
## writable-buffer.js
|
||||||
|
|
||||||
A [Writable](https://nodejs.org/api/stream.html#stream_writable_streams)
|
A [Writable](https://nodejs.org/api/stream.html#stream_writable_streams)
|
||||||
stream buffer.
|
stream buffer.
|
||||||
See [TypeScript definitions](/writable-buffer.d.ts).
|
See [TypeScript definitions](/writable-buffer.d.ts) with comments.
|
||||||
|
|
||||||
|
|
||||||
## utils.js
|
## utils.js
|
||||||
|
|
||||||
Async `fs` based helpers for common addon-related file operations.
|
Async `fs` based helpers for common addon-related file operations.
|
||||||
See [TypeScript definitions](/utils.d.ts).
|
See [TypeScript definitions](/utils.d.ts) with comments.
|
||||||
|
|
Loading…
Reference in New Issue