From ccd6b2fa516d806102cd4488f8dfb74f7c9c46a8 Mon Sep 17 00:00:00 2001 From: Aiden <12055114+aidenwallis@users.noreply.github.com> Date: Sat, 17 Dec 2022 19:13:57 +0000 Subject: [PATCH] only run CI once per commit in PR (#21) --- .github/workflows/ci.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8ca2099..617bc65 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,11 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + workflow_dispatch: permissions: contents: read @@ -40,6 +45,7 @@ jobs: # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. # skip-build-cache: true + test: name: test | ${{ matrix.go_version }} strategy: