Skip to content

Commit

Permalink
chore: Add autofix to PRs (#2010)
Browse files Browse the repository at this point in the history
* Adds autofixing before linting

* add install step

* remove ci step

* rename because "security"

* rename

* I don't understand CI

* maybe this works

* Remove Lint in favor of autofix
  • Loading branch information
perkinsjr authored Aug 13, 2024
1 parent afce17e commit fd99656
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/lint.yaml → .github/workflows/autofix.ci.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
name: Lint
name: autofix.ci
on:
workflow_call:
pull_request:
push:
branches: ["main"]
permissions:
contents: read

jobs:
lint_code:
name: Code
autofix:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16

- name: Install
uses: ./.github/actions/install
with:
ts: true
go: true

- run: pnpm biome ci .

- name: Go vet
run: go vet ./...
working-directory: apps/agent
- run: pnpm biome format . --write && pnpm biome check . --apply

- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
lint_docs:
name: Docs
runs-on: ubuntu-latest
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ on:
branches: [main]
workflow_dispatch:


jobs:
lint:
name: Lint
uses: ./.github/workflows/lint.yaml

test_packages:
name: Test Packages
uses: ./.github/workflows/unit_test.yaml
Expand All @@ -24,6 +19,3 @@ jobs:
test_api:
name: Test API
uses: ./.github/workflows/job_test_api_local.yaml



0 comments on commit fd99656

Please sign in to comment.