supercop.ts

cross-compiled javascript implementation of ed25519 based on supercop-ref10
git clone git://git.finwo.net/lib/supercop.ts
Log | Files | Refs | README | LICENSE

commit 84343423b7993d0457ecfb8937cbf94f7dcbb815
parent 631b3dc3a4625d66584fb869d93a578a573ce212
Author: finwo <finwo@pm.me>
Date:   Mon, 25 Nov 2019 17:56:28 +0100

Added test & publish workflows

Diffstat:
A.github/workflows/publish.yml | 33+++++++++++++++++++++++++++++++++
A.github/workflows/test.yml | 26++++++++++++++++++++++++++
2 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: Test and publish + +on: + push: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install and npm test + run: | + npm install + npm test + - name: npm publish + run: | + npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN + npm publish || true + env: + CI: true + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Test and publish + +on: + push: + branches-ignore: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install and npm test + run: | + npm install + npm test