Skip to content

ci: add autofix.ci (#5) #2

ci: add autofix.ci (#5)

ci: add autofix.ci (#5) #2

Workflow file for this run

name: autofix.ci # needed to securely identify the workflow
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
autofix:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Read Node.js version
id: node-version
run: echo "version=$(cat .node-version)" >> "$GITHUB_OUTPUT"
- name: Set up Vite+
uses: voidzero-dev/setup-vp@2dec1e33f4ab2c6d5bce1b0c4607961bb1a3f7a1 # v1
with:
version: 0.2.4
node-version: ${{ steps.node-version.outputs.version }}
sfw: true
cache: true
run-install: |
- args: ['--frozen-lockfile']
# `vp check --fix` applies formatting/lint fixes. Unfixable lint errors
# are CI's job to report; don't let them block uploading the fixes that
# did apply.
- run: vp check --fix || true
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4