publiclab/leaflet-blurred-location

View on GitHub
.github/workflows/tests.yml

Summary

Maintainability
Test Coverage
name: tests
on: [pull_request]
jobs:
  jasmine:
    runs-on: ubuntu-18.04
    steps:
    - uses: actions/checkout@v2
    - name: Setup node
      uses: actions/setup-node@v2
      with:
        node-version: '12'
        check-latest: true
    - name: Cache node modules
      uses: actions/cache@v2
      env:
        cache-name: cache-node-modules
      with:
        path: ~/.npm
        key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
        restore-keys: |
          ${{ runner.os }}-build-${{ env.cache-name }}-
          ${{ runner.os }}-build-
          ${{ runner.os }}-
    - name: Install dependencies
      run: npm install
    - name: "Build dist files"
      run: grunt build
    - name: "Jasmine tests"
      run: grunt jasmine