From 58e26bd10bb6f083b3171004c2b87da764df17e6 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 10 May 2024 12:46:29 +0200 Subject: [PATCH] chore: add autofix --- .github/workflows/autofix.yml | 36 +++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 23 ---------------------- 2 files changed, 36 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/autofix.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 0000000000..e978b8130f --- /dev/null +++ b/.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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cab07cc45a..a6475b851f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}