From 93d3aeb7826dd66ab3a3f3f6defeddb9475c4a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Ruiz?= Date: Fri, 8 Nov 2024 09:57:46 +0100 Subject: [PATCH] Update CI workflow (#10) * Format files * Update CI workflow --- .github/workflows/build_on_push.yml | 14 -------------- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/build_on_push.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/build_on_push.yml b/.github/workflows/build_on_push.yml deleted file mode 100644 index bc278450..00000000 --- a/.github/workflows/build_on_push.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Build packages (on push) - -# This workflow runs when any of the following occur: -# - On push to branches named after ci/* -on: - push: - # Sequence of patterns matched against refs/heads - branches: - - "ci/*" - -jobs: - call-build-workflow: - uses: ./.github/workflows/build.yml - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..04d0347b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: Build packages (on push) + +# This workflow runs when any of the following occur: +# - On push to branches named after ci/* +on: + pull_request: + # Sequence of patterns matched against refs/heads + branches: + - "migrate-*" + - "ci/*" + +jobs: + call-test-workflow: + runs-on: ubuntu-22.04 + steps: + - run: | + ./gradlew check + call-build-workflow: + uses: ./.github/workflows/build.yml + secrets: inherit