Commit b35f10b2 authored by Michael Underwood's avatar Michael Underwood
Browse files

Allow CI tests to run with failed linting

parent 3177a917
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
@@ -27,9 +27,6 @@ jobs:
      - name: Install dependencies
        run: yarn install --frozen-lockfile

      - name: Verify linting
        run: yarn lint-only --max-warnings=0

      - name: Build vue-leaflet
        run: yarn build

@@ -39,6 +36,20 @@ jobs:
          path: ./*
          key: ${{ runner.os }}-${{ github.ref }}-${{ github.sha }}-setup
  
  linting:
    name: Verify linting
    runs-on: ubuntu-latest
    needs: setup
    steps:
      - name: Restore cache
        uses: actions/cache@v3
        with:
          path: ./*
          key: ${{ runner.os }}-${{ github.ref }}-${{ github.sha }}-setup
      
      - name: Lint
        run: yarn lint-only --max-warnings=0

  unit_tests:
    name: Run unit tests
    runs-on: ubuntu-latest
@@ -59,6 +70,7 @@ jobs:
    if: github.repository_owner == '@vue-leaflet'
    needs: 
      - unit_tests
      - linting
    steps:
      - name: Publish to NPM
        uses: JS-DevTools/npm-publish@v2