build(ci): run autofix in a unique job
[e-mobility-charging-stations-simulator.git] / .github / workflows / autofix.yml
CommitLineData
a4beba2d
JB
1name: autofix.ci
2on:
3 pull_request:
4 push:
5 branches: ['main']
6permissions:
7 contents: read
8
9jobs:
8b17228e 10 autofix:
a4beba2d 11 runs-on: ubuntu-latest
a4beba2d
JB
12 steps:
13 - uses: actions/checkout@v4
52238c63 14 - run: pipx install poetry
a4beba2d
JB
15 - uses: actions/setup-python@v5
16 with:
17 python-version: 3.12
52238c63 18 cache: poetry
a4beba2d 19
8b17228e
JB
20 - working-directory: tests/ocpp-server
21 run: |
22 poetry install --no-root
23 poetry run task lint
a4beba2d 24
a4beba2d
JB
25 - uses: actions/checkout@v4
26 - uses: pnpm/action-setup@v4
27 - uses: actions/setup-node@v4
28 with:
a4beba2d
JB
29 cache: 'pnpm'
30
a4beba2d 31 - run: |
8b17228e
JB
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
a4beba2d
JB
38 pnpm format
39 pnpm lint:fix
40
41 - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a