Skip to content

Commit

Permalink
[MOD] github action build workflow to include coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnBra committed Jul 19, 2020
1 parent 8e2a9ae commit fd7ce6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: coverage
name: Test and Build

on:
push:
Expand All @@ -7,10 +7,10 @@ on:
branches: [ master ]

jobs:
build:

build:
name: build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]
Expand All @@ -23,3 +23,9 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn test
- run: yarn build

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# A small lib for the observer pattern
![coverage](https://github.com/JohnBra/ts-simple-observer/workflows/coverage/badge.svg)
![build](https://github.com/JohnBra/ts-simple-observer/workflows/build/badge.svg)

Just simple observer/subject TypeScript interfaces as well as convenient mock classes for unit testing.

Expand Down

0 comments on commit fd7ce6c

Please sign in to comment.