Also use actor_type to determine if an account is a bot in antiFollowbotPolicy
[akkoma] / .woodpecker / .test.yml
index 52519b23c2abb4ca7954f8c74d6fdc5e512029e0..6724d363ddc1e42248a9cc1bef415a317380efb4 100644 (file)
@@ -3,12 +3,15 @@ depends_on:
 
 matrix:
   ELIXIR_VERSION:
-  - 1.10
   - 1.13
 
 pipeline:
   build:
     image: pleromaforkci/ci-base:${ELIXIR_VERSION}
+    when:
+      event:
+      - push
+      - pull_request
     environment:
       MIX_ENV: test
     commands:
@@ -17,19 +20,13 @@ pipeline:
     - mix deps.get
     - mix compile
 
-  analyse:
-    group: test
-    image: pleromaforkci/ci-base:${ELIXIR_VERSION}
-    environment:
-      MIX_ENV: test
-    commands:
-    - mix local.hex --force
-    - mix local.rebar --force
-    - mix credo --strict --only=warnings,todo,fixme,consistency,readability
-
   test:
     group: test
     image: pleromaforkci/ci-base:${ELIXIR_VERSION}
+    when:
+      event:
+      - push
+      - pull_request
     environment:
       MIX_ENV: test
       POSTGRES_DB: pleroma_test