mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
26 lines
479 B
YAML
26 lines
479 B
YAML
name: unit-tests
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
- releases/v3
|
|
push:
|
|
branches:
|
|
- dev
|
|
jobs:
|
|
unit-tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Install and Test
|
|
run: |
|
|
npm install
|
|
npm run-script test
|
|
|
|
- name: Uploade CodeCov Report
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }} #required
|