| 1 | name: autofix.ci |
| 2 | on: |
| 3 | pull_request: |
| 4 | push: |
| 5 | branches: ['main'] |
| 6 | permissions: |
| 7 | contents: read |
| 8 | |
| 9 | jobs: |
| 10 | autofix: |
| 11 | runs-on: ubuntu-latest |
| 12 | steps: |
| 13 | - uses: actions/checkout@v4 |
| 14 | - run: pipx install poetry |
| 15 | - uses: actions/setup-python@v5 |
| 16 | with: |
| 17 | python-version: 3.12 |
| 18 | cache: poetry |
| 19 | |
| 20 | - working-directory: tests/ocpp-server |
| 21 | run: | |
| 22 | poetry install --no-root |
| 23 | poetry run task lint |
| 24 | |
| 25 | - uses: actions/checkout@v4 |
| 26 | - uses: pnpm/action-setup@v4 |
| 27 | - uses: actions/setup-node@v4 |
| 28 | with: |
| 29 | cache: 'pnpm' |
| 30 | |
| 31 | - run: | |
| 32 | pnpm install --ignore-scripts --frozen-lockfile |
| 33 | pnpm format |
| 34 | |
| 35 | - working-directory: ui/web |
| 36 | run: | |
| 37 | pnpm install --ignore-scripts --frozen-lockfile |
| 38 | pnpm format |
| 39 | pnpm lint:fix |
| 40 | |
| 41 | - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a |