~cytrogen/masto-fe

ref: adf075d19f1aaaa1ca017a067be8e1afa991c4d9 masto-fe/.woodpecker/lint.yaml -rw-r--r-- 788 bytes
adf075d1 — Zoë Bijl [bugfix] Fix linter issues (#85) 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
steps:
  lint:
    image: node:22-alpine
    pull: true

    # https://woodpecker-ci.org/docs/usage/volumes
    volumes:
      - /woodpecker/masto-fe-standalone/node_modules:/woodpecker/src/codeberg.org/superseriousbusiness/masto-fe-standalone/node_modules
      - /woodpecker/masto-fe-standalone/.eslintcache:/woodpecker/src/codeberg.org/superseriousbusiness/masto-fe-standalone/.eslintcache

    # https://woodpecker-ci.org/docs/administration/configuration/backends/docker#run-user
    backend_options:
      docker:
        user: 1000:1000

    # https://woodpecker-ci.org/docs/usage/workflow-syntax#commands
    commands:
      - yarn
      - yarn lint:js

    # https://woodpecker-ci.org/docs/usage/workflow-syntax#when---conditional-execution
    when:
      - event: pull_request