Skip to content

Commit

Permalink
👷 [ci] replace travis-ci to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
zlargon committed Mar 20, 2021
1 parent 49c37ba commit 42bae63
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 24 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: google-tts
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [10.x, 12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run cover
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
upload-code-coverage-report:
needs: test
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Google TTS (Text-To-Speech) for node.js
[![][dependency-dev-img]][dependency-dev-url]
[![][install-size-img]][install-size-result]

[![][travis-img]][travis-url]
[![][gh-action-img]][gh-action-url]
[![][coverage-img]][coverage-url]

## Installation
Expand Down Expand Up @@ -133,7 +133,7 @@ MIT
[dependency-img]: https://img.shields.io/david/zlargon/google-tts.svg
[dependency-dev-url]: https://david-dm.org/zlargon/google-tts#info=devDependencies
[dependency-dev-img]: https://img.shields.io/david/dev/zlargon/google-tts.svg
[travis-url]: https://travis-ci.com/zlargon/google-tts
[travis-img]: https://img.shields.io/travis/com/zlargon/google-tts
[gh-action-url]: https://github.com/zlargon/google-tts/actions
[gh-action-img]: https://github.com/zlargon/google-tts/actions/workflows/build.yml/badge.svg
[coverage-url]: https://coveralls.io/github/zlargon/google-tts
[coverage-img]: https://img.shields.io/coveralls/github/zlargon/google-tts

0 comments on commit 42bae63

Please sign in to comment.