diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 000000000..783456d1e --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,55 @@ +name: autofix.ci + +on: + pull_request: + push: + branches: ["main"] + +permissions: + contents: read + +jobs: + autofix: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # ratchet:actions/checkout@v5 + + - name: Setup Node.js + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # ratchet:actions/setup-node@v4 + with: + node-version-file: .tool-versions + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run biome with auto-fix + run: npm run lint-biome + continue-on-error: true + + - name: Run oxlint with auto-fix + run: npm run lint-oxlint + continue-on-error: true + + - name: Fix website client linting + working-directory: website/client + run: | + npm ci + npm run lint + continue-on-error: true + + - name: Fix website server linting + working-directory: website/server + run: | + npm ci + npm run lint + continue-on-error: true + + - name: Fix browser extension linting + working-directory: browser + run: | + npm ci + npm run lint + continue-on-error: true + + - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # ratchet:autofix-ci/action@v1.3.2