summaryrefslogtreecommitdiff
path: root/.gitea/workflows/lint.yaml
blob: 0a8e7df065732e9c8fa9dec39ead7a6b5c45b6f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: lint

on:
  push:
    branches:
      - "!master"
  pull_request: {}

defaults:
  run:
    shell: sh

jobs:
  lint:
    runs-on: alpine-3.16
    steps:
      - name: checkout source
        uses: actions/checkout@v3

      - name: eslint
        run: npx eslint js

      - name: phpstan
        run: php81 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G