From 1402f160f13aaacf8544d65f6fe756fcf6fca323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Mi=C5=9B?= Date: Fri, 28 Jul 2023 12:59:08 +0200 Subject: [PATCH] Add Dependabot and CI configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patryk Miś --- .github/dependabot.yml | 12 ++++++ .github/workflows/build.yml | 18 +++++++++ .github/workflows/release.yml | 37 ------------------- .github/workflows/validate-gradle-wrapper.yml | 11 ++++++ 4 files changed, 41 insertions(+), 37 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/validate-gradle-wrapper.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..55edfe24f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + target-branch: "master" + - package-ecosystem: "gradle" + directory: "/" + schedule: + interval: "daily" + target-branch: "master" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..57cbe312c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build application + +on: [pull_request, push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 17 + cache: gradle + - name: Build with Gradle + run: ./gradlew build --no-daemon diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index f1db7deb1..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -on: - push: - # Uncomment to test against a branch - #branches: - # - ci - tags: - - 'v*' -jobs: - create_release: - name: Create Github release - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Get version from tag - id: get_version - run: | - if [[ "${GITHUB_REF}" == refs/tags/* ]]; then - version=${GITHUB_REF#refs/tags/v} - else - version=0.0.0.${GITHUB_REF#refs/heads/} - fi - echo "version=${version}" >> "${GITHUB_OUTPUT}" - - - name: Check out repository - uses: actions/checkout@v3 - - - name: Create release - uses: softprops/action-gh-release@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag_name: v${{ steps.get_version.outputs.version }} - name: Version ${{ steps.get_version.outputs.version }} - body_path: RELEASE.md - draft: true - prerelease: false diff --git a/.github/workflows/validate-gradle-wrapper.yml b/.github/workflows/validate-gradle-wrapper.yml new file mode 100644 index 000000000..b5f0b31ac --- /dev/null +++ b/.github/workflows/validate-gradle-wrapper.yml @@ -0,0 +1,11 @@ +name: Validate Gradle Wrapper + +on: [pull_request, push] + +jobs: + validation: + name: Validation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: gradle/wrapper-validation-action@v1