Skip to content

Commit

Permalink
Merge branch 'github-actions'
Browse files Browse the repository at this point in the history
  • Loading branch information
screendriver committed Aug 14, 2019
2 parents 876b172 + 3a2f7ff commit 4c45ee3
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 117 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [8, 10, 12]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: |
npm install -g yarn
yarn install --frozen-lockfile
- name: Check source code
run: |
yarn lint
yarn prettier:check
- name: Compile source code
run: yarn build
- name: Run tests
run: yarn test:unit:coverage
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# convert-vapid-public-key

[![TypeScript](https://img.shields.io/badge/types-TypeScript-blue.svg)](https://www.typescriptlang.org)
[![Build Status](https://dev.azure.com/screendriver/convert-vapid-public-key/_apis/build/status/screendriver.convert-vapid-public-key?branchName=master)](https://dev.azure.com/screendriver/convert-vapid-public-key/_build/latest?definitionId=2?branchName=master)

To subscribe to [Web Push Notifications](https://developers.google.com/web/fundamentals/push-notifications/) you have to provide an Base64 application server key that needs to be converted to an [Uint8Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array). This package helps you with the conversion from a Base64 string to an `Uint8Array`.

Expand Down
44 changes: 0 additions & 44 deletions azure-pipelines.yml

This file was deleted.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
"prepublishOnly": "yarn clean && yarn build && yarn test",
"clean": "rm -rf dist",
"lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'",
"check:prettier": "prettier --check 'src/**/*.ts' 'test/**/*.ts'",
"prettier:check": "prettier --check 'src/**/*.ts' 'test/**/*.ts'",
"test:unit:coverage": "nyc tape -r source-map-support/register -r esm 'dist/test/**/*.js'",
"test:unit": "yarn test:unit:coverage | tap-dot",
"test:ci": "yarn test:unit:coverage | tap-xunit > test-results.xml",
"test:unit": "tape -r source-map-support/register -r esm 'dist/test/**/*.js' | tap-nirvana",
"build": "tsc --build"
},
"devDependencies": {
Expand All @@ -42,8 +41,7 @@
"nyc": "14.0.0",
"prettier": "1.17.0",
"source-map-support": "0.5.12",
"tap-dot": "2.0.0",
"tap-xunit": "2.3.0",
"tap-nirvana": "1.1.0",
"tape": "4.10.1",
"tslint": "5.11.0",
"tslint-config-prettier": "1.17.0",
Expand Down
Loading

0 comments on commit 4c45ee3

Please sign in to comment.