Only run Go tests for push on master.

Add a branch filter to only run tests for "push" on master. This avoids
double-running tests on PRs.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
SuperQ
2024-03-10 12:46:57 +01:00
parent 38329f4cbe
commit e053ca91b1

View File

@@ -1,5 +1,8 @@
name: Go Tests
on: [push, pull_request]
on:
pull_request:
push:
branches: [master]
permissions:
contents: read