refactor(ci): cleanup GH actions
[e-mobility-charging-stations-simulator.git] / .github / workflows / autofix.yml
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 format
24
25 - uses: pnpm/action-setup@v4
26 - uses: actions/setup-node@v4
27 with:
28 cache: 'pnpm'
29
30 - run: pnpm install --ignore-scripts
31
32 - run: pnpm format
33
34 - working-directory: ui/web
35 run: |
36 pnpm format
37 pnpm lint:fix
38
39 - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a