remove log #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Test and Code Coverage | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test-and-code-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Depedencies | |
run: yarn install | |
- name: Run Test | |
run: yarn test | |
- name: Run Code Coverage | |
run: yarn cov | |
- name: Commit and Push Changes | |
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }} | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Codecov" | |
git add README.md | |
git diff --cached --exit-code || git commit -m "Update codecov badge" | |
git push origin master |