summaryrefslogtreecommitdiff
path: root/.gitea/workflows
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-03-25 18:03:39 +0300
committerAndrew Dolgov <[email protected]>2023-03-25 18:08:31 +0300
commit66edaa02d8cbff4a08807e6770df0e12dd530566 (patch)
treee58319fd817b1206f0d030736791d436f3c0ed82 /.gitea/workflows
parent1fbcbc9301a4d45df78bb95499bd704043f22f8c (diff)
add lint
Diffstat (limited to '.gitea/workflows')
-rw-r--r--.gitea/workflows/lint.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml
new file mode 100644
index 0000000..6b7d487
--- /dev/null
+++ b/.gitea/workflows/lint.yaml
@@ -0,0 +1,26 @@
+# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
+
+name: lint
+
+on:
+ - push
+ - workflow_dispatch
+ - 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
+