]> jfr.im git - irc/evilnet/node-irc-nefarious.git/commitdiff
Add timeouts and concurreny limits
authorHalf-Shot <redacted>
Tue, 25 Apr 2023 11:32:36 +0000 (12:32 +0100)
committerHalf-Shot <redacted>
Tue, 25 Apr 2023 11:34:13 +0000 (12:34 +0100)
.github/workflows/tests.yml

index 8f67a4b9d908f04255af06b2a22e161dc415e0da..10c443f1b4e26408909178d7842fc2e0ee43d6dc 100644 (file)
@@ -1,5 +1,9 @@
 name: CI
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 on:
   push:
     branches: [ master ]
@@ -19,6 +23,7 @@ jobs:
     - run: yarn lint
   test:
     runs-on: ubuntu-latest
+    timeout-minutes: 10
     strategy:
       matrix:
         node_version: [18, 20]
@@ -32,6 +37,7 @@ jobs:
       - run: yarn test
   integration:
     runs-on: ubuntu-latest
+    timeout-minutes: 10
     services:
       ircd:
         image: inspircd/inspircd-docker