Merge CI actions

This commit is contained in:
Luis Blanco 2021-04-19 20:21:54 +03:00
parent 410b704d3d
commit 33b4892dfb
4 changed files with 45 additions and 53 deletions

View File

@ -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

View File

@ -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

39
.github/workflows/validate.yml vendored Normal file
View File

@ -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

View File

@ -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.