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 | |
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 | ||
56b900ff JB |
31 | - run: pnpm install --ignore-scripts |
32 | ||
33 | - run: pnpm format | |
8b17228e JB |
34 | |
35 | - working-directory: ui/web | |
36 | run: | | |
a4beba2d JB |
37 | pnpm format |
38 | pnpm lint:fix | |
39 | ||
40 | - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a |