From 1a3a42f3b0163ab0589de850f60e72d9f6ee2ed9 Mon Sep 17 00:00:00 2001 From: sebthom Date: Fri, 1 Mar 2024 21:47:56 +0100 Subject: [PATCH 1/2] ci: add dependabot config --- .github/dependabot.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..e61d0e97f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,20 @@ +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file +version: 2 +updates: +- package-ecosystem: github-actions + directory: / + schedule: + interval: daily + commit-message: + prefix: ci + prefix-development: ci + include: scope + +- package-ecosystem: gradle + directory: / + schedule: + interval: daily + commit-message: + prefix: fix + prefix-development: build + include: scope From 99f6c630b82893d8e7d4b9228161f1610b0a6d6d Mon Sep 17 00:00:00 2001 From: sebthom Date: Fri, 1 Mar 2024 23:21:24 +0100 Subject: [PATCH 2/2] ci: update GHA workflow --- .github/workflows/validate.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 0bc167fc0..d3953c4ba 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1,18 +1,44 @@ -on: [ pull_request, push] +# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions +name: Validate + +on: + push: + branches-ignore: # build all branches except: + - 'dependabot/**' # prevent workflow being triggered twice (once for commit to the branch and once for opening/syncing the PR) + tags-ignore: # don't build tags + - '**' + paths-ignore: + - '**/*.md' + - '.editorconfig' + - '.git*' + - '.github/*.yml' + pull_request: + paths-ignore: + - '**/*.md' + - '.editorconfig' + - '.git*' + - '.github/*.yml' + workflow_dispatch: # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ jobs: build: runs-on: ${{ matrix.os }} + strategy: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] + steps: - - uses: actions/checkout@v3 + - name: Git Checkout + uses: actions/checkout@v4 # https://github.com/actions/checkout + - name: Set up JDK 11 ☕ uses: actions/setup-java@v3 with: java-version: 11 distribution: 'temurin' + cache: gradle + - name: Build with Gradle 🏗️ run: ./gradlew build