From 00728dab1869a3dbf13e5ff2c0ff765b5312da90 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 28 Jan 2020 20:37:06 +0100 Subject: [PATCH] workflows: build pull requests and master With this change pull requests from forks are also built. We yet need to verify if tags/releases are built or if we need to specify the tags as well. --- .github/workflows/build_tests.yml | 8 +++++++- .github/workflows/ccpp.yml | 8 +++++++- .github/workflows/compile_nuttx.yml | 8 +++++++- .github/workflows/sitl_tests.yml | 8 +++++++- .github/workflows/sitl_tests_coverage.yml | 8 +++++++- 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index 368e7e7fd1..c71434dbb7 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -1,6 +1,12 @@ name: Build Tests -on: [push] +on: + push: + branches: + - 'master' + pull_request: + branches: + - '*' jobs: build: diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 13882f147e..3e9e1d3205 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -1,6 +1,12 @@ name: C/C++ CI -on: [push] +on: + push: + branches: + - 'master' + pull_request: + branches: + - '*' jobs: build: diff --git a/.github/workflows/compile_nuttx.yml b/.github/workflows/compile_nuttx.yml index 7bcca6a843..08d157da48 100644 --- a/.github/workflows/compile_nuttx.yml +++ b/.github/workflows/compile_nuttx.yml @@ -1,6 +1,12 @@ name: compile nuttx -on: [push] +on: + push: + branches: + - 'master' + pull_request: + branches: + - '*' jobs: build: diff --git a/.github/workflows/sitl_tests.yml b/.github/workflows/sitl_tests.yml index 6378b043f1..a152677869 100644 --- a/.github/workflows/sitl_tests.yml +++ b/.github/workflows/sitl_tests.yml @@ -1,6 +1,12 @@ name: SITL Tests -on: [push] +on: + push: + branches: + - 'master' + pull_request: + branches: + - '*' jobs: build: diff --git a/.github/workflows/sitl_tests_coverage.yml b/.github/workflows/sitl_tests_coverage.yml index d06ad36c8a..bd7d1dbee2 100644 --- a/.github/workflows/sitl_tests_coverage.yml +++ b/.github/workflows/sitl_tests_coverage.yml @@ -1,6 +1,12 @@ name: SITL Tests (Code Coverage) -on: [push] +on: + push: + branches: + - 'master' + pull_request: + branches: + - '*' jobs: build: