From 6c3070732c1ac37169b795bb0b06908d73402eef Mon Sep 17 00:00:00 2001 From: Emanuele Gallone <26747011+EmanueleGallone@users.noreply.github.com> Date: Tue, 8 Mar 2022 17:21:00 +0100 Subject: [PATCH] Fix CI to run twice (#49) --- .github/workflows/golangci-lint.yml | 7 ++++++- .github/workflows/main.yml | 6 +++++- .github/workflows/reuse.yml | 6 +++++- .github/workflows/run-unit-test.yml | 6 +++++- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 05a4f11..f47a618 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -2,7 +2,12 @@ # Copyright 2022-present Open Networking Foundation name: golangci-lint -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + jobs: golangci: name: lint diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2dc8b6a..f7f2880 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,11 @@ # Copyright 2022-present Open Networking Foundation name: Publish pfcpsim -on: [pull_request, push] +on: + push: + branches: + - main + pull_request: jobs: build: diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index 55d8d74..398754e 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -3,7 +3,11 @@ name: REUSE -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: lint: diff --git a/.github/workflows/run-unit-test.yml b/.github/workflows/run-unit-test.yml index 460f28e..030a0ae 100644 --- a/.github/workflows/run-unit-test.yml +++ b/.github/workflows/run-unit-test.yml @@ -3,7 +3,11 @@ name: Unit tests -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: unit-test: