Skip to content

Commit

Permalink
ci: autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 19, 2024
1 parent cbe9ce3 commit d3c67e0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: autofix.ci

on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- 'scripts/**'

permissions:
contents: read

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: pnpm run lint --write

- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
with:
commit-message: 'style: fix code style'
3 changes: 1 addition & 2 deletions e2e/fixtures/filenames/routes/users.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<script lang="ts" setup>
</script>
<script lang="ts" setup></script>

<template><span>users</span></template>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"dev": "pnpm run test --ui",
"docs": "vitepress dev docs",
"docs:build": "vitepress build docs",
"lint": "prettier -c '{src,examples,playground}/**/*.{ts,vue}'",
"lint": "prettier -c '{src,test,e2e,examples,playground}/**/*.{ts,vue}'",
"play": "npm -C playground run dev",
"play:build": "npm -C playground run build",
"release": "node scripts/release.mjs",
Expand Down

0 comments on commit d3c67e0

Please sign in to comment.