From 94b7245129be416035981e31da6bb7d944deae0a Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Thu, 25 Jul 2024 19:23:03 +0800 Subject: [PATCH] ci: update style action --- .github/workflows/lint.yml | 13 ------------- .github/workflows/release.yaml | 5 ----- .github/workflows/style.yml | 10 ++++++++++ README.md | 2 +- 4 files changed, 11 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/style.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index a73dd5c..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: lint -on: - push: - pull_request: -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - - run: corepack enable - - run: yarn - - run: yarn lint diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 20ae3b1..fadb456 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,7 +25,6 @@ jobs: python-version: "3.10" - run: corepack enable - run: yarn - - run: yarn lint - if: matrix.architecture == 'x64' run: yarn make --arch=x64 --verbose - if: matrix.architecture == 'arm64' @@ -87,7 +86,6 @@ jobs: - run: corepack enable - run: corepack prepare yarn - run: yarn - - run: yarn lint - if: matrix.architecture == 'x64' run: yarn make --arch=x64 --verbose - if: matrix.architecture == 'arm64' @@ -140,9 +138,6 @@ jobs: Write-Output "Retrying ($count/$retries)..." Start-Sleep -Seconds 5 } while ($count -lt $retries) - # run: | - # yarn lint || (echo "Linting issues found, trying to fix..." && yarn lint-fix) - - if: matrix.architecture == 'x64' run: yarn make --arch=x64 --verbose - if: matrix.architecture == 'arm64' diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml new file mode 100644 index 0000000..b331264 --- /dev/null +++ b/.github/workflows/style.yml @@ -0,0 +1,10 @@ +name: style +on: + push: + pull_request: +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dprint/check@v2.2 diff --git a/README.md b/README.md index 181eeb8..05af258 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Debugtron -[![lint](https://github.com/pd4d10/debugtron/workflows/lint/badge.svg)](https://github.com/pd4d10/debugtron/actions) +[![style](https://github.com/pd4d10/debugtron/workflows/style/badge.svg)](https://github.com/pd4d10/debugtron/actions) Debugtron is an app to debug in-production Electron based app. It is also built with Electron.