Skip to content

Merge pull request #2 from dkyeremeh/main #21

Merge pull request #2 from dkyeremeh/main

Merge pull request #2 from dkyeremeh/main #21

Workflow file for this run

name: Test
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
# Install and Test Example
- name: Install and Test Example
run: |
cd example
npm install
npm run test:cov
cp -r coverage ..
cd ..
# Add this
- name: Update Coverage Badge
# GitHub actions: default branch variable
# https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
uses: ./