Skip to content

Commit

Permalink
chore: add autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 10, 2024
1 parent c69c599 commit 58e26bd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 23 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/autofix.yml
@@ -0,0 +1,36 @@
name: autofix.ci

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
autofix:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- name: Use Node.js lts/*
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Setup
run: npm i -g @antfu/ni

- name: Install
run: nci
env:
CYPRESS_INSTALL_BINARY: 0

- name: Lint
run: nr lint --fix

- uses: autofix-ci/action@v1
23 changes: 0 additions & 23 deletions .github/workflows/ci.yml
Expand Up @@ -12,29 +12,6 @@ on:
merge_group: {}

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node
uses: actions/setup-node@v3
with:
node-version: 18.18.2
cache: pnpm

- name: Setup
run: npm i -g @antfu/ni

- name: Install
run: nci

- name: Lint
run: nr lint

test:
runs-on: ${{ matrix.os }}

Expand Down

0 comments on commit 58e26bd

Please sign in to comment.