From 33b4892dfbfa5121948f861dc80d300b7f0b9c28 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Mon, 19 Apr 2021 20:21:54 +0300 Subject: [PATCH] Merge CI actions --- .github/workflows/lint.yml | 21 ------------------ .github/workflows/test.yml | 26 ----------------------- .github/workflows/validate.yml | 39 ++++++++++++++++++++++++++++++++++ README.md | 12 +++++------ 4 files changed, 45 insertions(+), 53 deletions(-) delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/test.yml create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 9db21ad..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index eef7dff..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..7a558d0 --- /dev/null +++ b/.github/workflows/validate.yml @@ -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 diff --git a/README.md b/README.md index b28cdbe..7886a54 100644 --- a/README.md +++ b/README.md @@ -33,35 +33,35 @@ additional snippets follow the links below. ## index.js Main exports for cross-platform addon configuration. -See [TypeScript definitions](/index.d.ts). +See [TypeScript definitions](/index.d.ts) with comments. ## download.js 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 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 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 A [Writable](https://nodejs.org/api/stream.html#stream_writable_streams) stream buffer. -See [TypeScript definitions](/writable-buffer.d.ts). +See [TypeScript definitions](/writable-buffer.d.ts) with comments. ## utils.js Async `fs` based helpers for common addon-related file operations. -See [TypeScript definitions](/utils.d.ts). +See [TypeScript definitions](/utils.d.ts) with comments.