From f3fee484d8771b606f44a02875e06af597b67a66 Mon Sep 17 00:00:00 2001 From: Mats Andreassen Date: Mon, 16 Nov 2020 11:01:08 +0100 Subject: [PATCH] Add coveralls github action --- .github/workflows/coveralls.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/coveralls.yml diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 0000000..e98c919 --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -0,0 +1,25 @@ +name: Test and publish Coveralls + +on: ["push", "pull_request"] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Use Node.js 10.x + uses: actions/setup-node@v1 + with: + node-version: 10.x + + - name: Check and create coverage file + run: | + npm install + npm run test:coverage + + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }}