Skip to content

Commit

Permalink
Allow CI tests to run with failed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeu committed Jun 16, 2023
1 parent 3177a91 commit b35f10b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -26,9 +26,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

0 comments on commit b35f10b

Please sign in to comment.