Commit | Line | Data |
---|---|---|
a4beba2d JB |
1 | name: autofix.ci |
2 | on: | |
3 | pull_request: | |
4 | push: | |
5 | branches: ['main'] | |
6 | permissions: | |
7 | contents: read | |
8 | ||
9 | jobs: | |
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 | |
e7845453 | 23 | poetry run task format |
a4beba2d | 24 | |
a4beba2d JB |
25 | - uses: pnpm/action-setup@v4 |
26 | - uses: actions/setup-node@v4 | |
27 | with: | |
a4beba2d JB |
28 | cache: 'pnpm' |
29 | ||
56b900ff JB |
30 | - run: pnpm install --ignore-scripts |
31 | ||
32 | - run: pnpm format | |
8b17228e JB |
33 | |
34 | - working-directory: ui/web | |
35 | run: | | |
a4beba2d JB |
36 | pnpm format |
37 | pnpm lint:fix | |
38 | ||
39 | - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a |