diff --git a/.github/workflows/lint-fix.yml b/.github/workflows/lint-fix.yml deleted file mode 100644 index 8e397b2..0000000 --- a/.github/workflows/lint-fix.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Lint Fix - -on: - pull_request: - branches: - - main - - master - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Install pnpm - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.15.1 - - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: 16.x - registry-url: https://registry.npmjs.org/ - cache: "pnpm" - - - run: pnpm install - - - name: Lint Fix - run: pnpm run lint -- --fix - - - uses: EndBug/add-and-commit@v7 - with: - message: 'chore: fix lint' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..15d4780 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,37 @@ +name: Lint + +on: + push: + branches: + - main + + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install pnpm + uses: pnpm/action-setup@v2.0.1 + with: + version: 6.15.1 + + - name: Set node + uses: actions/setup-node@v2 + with: + node-version: 16 + cache: 'pnpm' + + - name: Setup + run: npm i -g @antfu/ni + + - name: Install + run: nci + + - name: Lint + run: nr lint diff --git a/package.json b/package.json index 70eab71..54b3450 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "esno": "^0.13.0", "typescript": "^4.5.4", "unbuild": "^0.6.7", - "vitest": "^0.0.96", + "vitest": "^0.0.97", "vite": "^2.7.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eb62d7d..ef8dfb5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,7 +13,7 @@ importers: typescript: ^4.5.4 unbuild: ^0.6.7 vite: ^2.7.3 - vitest: ^0.0.96 + vitest: ^0.0.97 devDependencies: '@antfu/eslint-config': 0.14.0_eslint@8.5.0+typescript@4.5.4 '@antfu/ni': 0.12.0 @@ -24,7 +24,7 @@ importers: typescript: 4.5.4 unbuild: 0.6.7 vite: 2.7.3 - vitest: 0.0.96_vite@2.7.3 + vitest: 0.0.97_vite@2.7.3 packages: @@ -3140,8 +3140,8 @@ packages: fsevents: 2.3.2 dev: true - /vitest/0.0.96_vite@2.7.3: - resolution: {integrity: sha512-qQiHmthTRfZ/jd729esq0J+tK757PYIWs4kT3RsNwEuk8T+m4eFpu+N5niHbdMyAC/DyziCZ9BwDgCRgwN1YWg==} + /vitest/0.0.97_vite@2.7.3: + resolution: {integrity: sha512-8gFvjcqBhI78gB5tCEQShQTfmi9R8B4zn+HkOVw2h4e1ojv8fMLBjGCBG0J/RiNdaBXCWcwUy+INgFz3eNNbkA==} engines: {node: '>=16.0.0'} hasBin: true peerDependencies: