Skip to content

Commit

Permalink
Merge pull request #79 from Procedure-RPC/dev
Browse files Browse the repository at this point in the history
v0.13
  • Loading branch information
toebeann authored Oct 24, 2022
2 parents a1496fb + f688b5c commit 3136cd7
Show file tree
Hide file tree
Showing 8 changed files with 1,249 additions and 1,894 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
version: [lts/*]
version: [lts/*, latest]

steps:
- name: Checkout repository
Expand All @@ -32,29 +32,15 @@ jobs:
with:
node-version: ${{ matrix.version }}

- name: Get npm cache directory
id: npm-cache
run: echo "::set-output name=dir::$(npm config get cache)"

- name: Cache node_modules
id: cache-npm
id: cache
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
path: ./node_modules
key: ${{ runner.os }}-${{ matrix.version }}-build-node-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: npm ci

- name: Run tests
Expand Down
22 changes: 4 additions & 18 deletions .github/workflows/publish-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,15 @@ jobs:
with:
node-version: lts/*

- name: Get npm cache directory
id: npm-cache
run: echo "::set-output name=dir::$(npm config get cache)"

- name: Cache node_modules
id: cache-npm
id: cache
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
path: ./node_modules
key: ${{ runner.os }}-lts/*-build-node-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: npm ci

- name: Generate code coverage reports
Expand Down
22 changes: 4 additions & 18 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,15 @@ jobs:
with:
node-version: lts/*

- name: Get npm cache directory
id: npm-cache
run: echo "::set-output name=dir::$(npm config get cache)"

- name: Cache node_modules
id: cache-npm
id: cache
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
path: ./node_modules
key: ${{ runner.os }}-lts/*-build-node-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: npm ci

- name: Generate API reference
Expand Down
22 changes: 4 additions & 18 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,15 @@ jobs:
with:
node-version: lts/*

- name: Get npm cache directory
id: npm-cache
run: echo "::set-output name=dir::$(npm config get cache)"

- name: Cache node_modules
id: cache-npm
id: cache
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
path: ./node_modules
key: ${{ runner.os }}-lts/*-build-node-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: npm ci

- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

The simple RPC framework for Node.js.

[![npm package version](https://img.shields.io/npm/v/@procedure-rpc/procedure.js.svg?logo=npm&label&labelColor=222&style=flat-square)](https://npmjs.org/package/@procedure-rpc/procedure.js "View procedure.js on npm") [![npm package downloads](https://img.shields.io/npm/dw/@procedure-rpc/procedure.js.svg?logo=npm&labelColor=222&style=flat-square)](https://npmjs.org/package/@procedure-rpc/procedure.js "View procedure.js on npm") [![typedocs](https://img.shields.io/badge/docs-informational.svg?logo=typescript&labelColor=222&style=flat-square)](https://procedure-rpc.github.io/procedure.js "Read the documentation on Github Pages") [![coverage](https://img.shields.io/codecov/c/github/procedure-rpc/procedure.js.svg?logo=codecov&labelColor=222&style=flat-square)](https://codecov.io/gh/procedure-rpc/procedure.js "View code coverage on Codecov") [![code quality](https://img.shields.io/codefactor/grade/github/procedure-rpc/procedure.js.svg?logo=codefactor&labelColor=222&style=flat-square)](https://www.codefactor.io/repository/github/procedure-rpc/procedure.js "View code quality on CodeFactor") [![license](https://img.shields.io/github/license/procedure-rpc/procedure.js.svg?color=informational&labelColor=222&style=flat-square)](https://github.com/toebeann/signals/blob/main/LICENSE "View the license on GitHub")
[![npm package version](https://img.shields.io/npm/v/@procedure-rpc/procedure.js.svg?logo=npm&label&labelColor=222&style=flat-square)](https://npmjs.org/package/@procedure-rpc/procedure.js "View procedure.js on npm") [![npm package downloads](https://img.shields.io/npm/dw/@procedure-rpc/procedure.js.svg?logo=npm&labelColor=222&style=flat-square)](https://npmjs.org/package/@procedure-rpc/procedure.js "View procedure.js on npm") [![typedocs](https://img.shields.io/badge/docs-informational.svg?logo=typescript&labelColor=222&style=flat-square)](https://procedure-rpc.github.io/procedure.js "Read the documentation on Github Pages") [![coverage](https://img.shields.io/codecov/c/github/procedure-rpc/procedure.js.svg?logo=codecov&labelColor=222&style=flat-square)](https://codecov.io/gh/procedure-rpc/procedure.js "View code coverage on Codecov") [![code quality](https://img.shields.io/codefactor/grade/github/procedure-rpc/procedure.js.svg?logo=codefactor&labelColor=222&style=flat-square)](https://www.codefactor.io/repository/github/procedure-rpc/procedure.js "View code quality on CodeFactor") [![license](https://img.shields.io/github/license/procedure-rpc/procedure.js.svg?logo=open-source-initiative&logoColor=3DA639&color=informational&labelColor=222&style=flat-square)](https://github.com/toebeann/signals/blob/main/LICENSE "View the license on GitHub")

[![npm test](https://img.shields.io/github/workflow/status/procedure-rpc/procedure.js/npm%20test.svg?logo=github&logoColor=aaa&label=npm%20test&labelColor=222&style=flat-square)](https://github.com/Procedure-RPC/procedure.js/actions/workflows/npm-test.yml "View npm test on GitHub Actions") [![publish code coverage](https://img.shields.io/github/workflow/status/procedure-rpc/procedure.js/publish%20code%20coverage.svg?logo=github&logoColor=aaa&label=publish%20code%20coverage&labelColor=222&style=flat-square)](https://github.com/Procedure-RPC/procedure.js/actions/workflows/publish-code-coverage.yml "View publish code coverage on GitHub Actions") [![publish package](https://img.shields.io/github/workflow/status/procedure-rpc/procedure.js/publish%20package.svg?logo=github&logoColor=aaa&label=publish%20package&labelColor=222&style=flat-square)](https://github.com/Procedure-RPC/procedure.js/actions/workflows/publish-package.yml "View publish package on GitHub Actions") [![publish docs](https://img.shields.io/github/workflow/status/procedure-rpc/procedure.js/publish%20docs.svg?logo=github&logoColor=aaa&label=publish%20docs&labelColor=222&style=flat-square)](https://github.com/Procedure-RPC/procedure.js/actions/workflows/publish-docs.yml "View publish docs on GitHub Actions")

Expand Down
Loading

0 comments on commit 3136cd7

Please sign in to comment.