zingchart/ZingChart-AngularJS

View on GitHub
.github/workflows/test.yml

Summary

Maintainability
Test Coverage
# Name is optional and if present must be used
# in the url path for badges
name: Test

# Run on a dev branch
on: 
  push:
    branches:
      - dev
  pull_request:
    branches:
      - master

jobs:
  Test:
    name: Test
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.13]

    steps:
      - name: Checkout Repository
        uses: actions/checkout@v1
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      # npm ci REQUIRES a package-lock.json file
      - name: Install Fresh Dependencies
        run: |
          rm package-lock.json
          npm install
      - name: Run Unit Tests
        run: npm run test