diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 583decfd..7424cf28 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -4,4 +4,8 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "daily" \ No newline at end of file + interval: "daily" + - package-ecosystem: "gradle" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/dependabot-build.yml b/.github/workflows/dependabot-build.yml new file mode 100644 index 00000000..a78953a1 --- /dev/null +++ b/.github/workflows/dependabot-build.yml @@ -0,0 +1,24 @@ +name: Test Dependabot PRs + +on: + push: + branches: + - 'dependabot/**' + +jobs: + test: + name: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + + - uses: gradle/gradle-build-action@v2.4.2 + env: + ORG_GRADLE_PROJECT_githubUser: x-access-token + ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} + with: + arguments: --configuration-cache test \ No newline at end of file diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1d1da512..2c641e10 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,7 +1,9 @@ name: Build and deploy -on: [push] - +on: + push: + branches-ignore: + - 'dependabot/**' env: IMAGE: ghcr.io/${{ github.repository }}/dp-mottak:${{ github.sha }}