build: Run Workflow on "master" + PRs

This is to avoid duplicate runs on Pull Requests.
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 9ae4c1a..0111559 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,6 +1,10 @@
 name: test
 
-on: [push, pull_request]
+on:
+  push:
+    branches:
+      - master
+  pull_request:
 
 jobs:
   test: