Skip to content

Feature/240814 func date add #13

Feature/240814 func date add

Feature/240814 func date add #13

Workflow file for this run

name: Test and Coverage
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: npm install, make test-coverage
run: |
npm install
npm run test:coverage
sleep 2
- name: Report Coveralls (Linux)
if: startsWith(runner.os, 'Linux')
run: curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Report Coveralls (Windows)
if: startsWith(runner.os, 'Windows')
run: curl -sL https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip | zcat > ./coveralls.exe && ./coveralls.exe
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Report Coveralls (macOS)
if: startsWith(runner.os, 'macOS')
run: |
brew tap coverallsapp/coveralls --quiet
brew install coveralls --quiet
coveralls