Skip to content

Commit cd65eac

Browse files
authored
Update ci.yml
1 parent ccdb1a0 commit cd65eac

File tree

1 file changed

+2
-47
lines changed

1 file changed

+2
-47
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,7 @@
1-
name: ci
2-
3-
## Does continuous integration build with Java 8 and 11 and
4-
## if succeeds and due to a dependabot pull request (minor or
5-
## patch verson change) it will automatically merge the PR.
6-
7-
## Unlike many sample automerge workflows this does not rely
8-
## on third-party libraries apart from the official dependabot
9-
## repository ones. This reduces the security risk significantly
10-
## (we don't want to unknowingly merge malicious code or expose
11-
## secrets to a malicious third party).
1+
name: ci
122

133
on: [push, pull_request]
144

155
jobs:
166
build:
17-
runs-on: ubuntu-latest
18-
strategy:
19-
matrix:
20-
java: ['8', '11', '17']
21-
steps:
22-
- uses: actions/checkout@v2
23-
- name: Set up JDK ${{ matrix.java }}
24-
uses: actions/setup-java@v2
25-
with:
26-
java-version: ${{ matrix.java }}
27-
distribution: 'adopt'
28-
- name: Build with Maven
29-
run: mvn --batch-mode --update-snapshots verify
30-
- uses: codecov/codecov-action@v1
31-
with:
32-
file: ./**/target/site/jacoco/jacoco.xml
33-
name: codecov
34-
dependabot:
35-
runs-on: ubuntu-latest
36-
needs: build
37-
permissions:
38-
pull-requests: write
39-
contents: write
40-
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
41-
steps:
42-
- name: Dependabot metadata
43-
id: metadata
44-
uses: dependabot/[email protected]
45-
with:
46-
github-token: "${{ secrets.GITHUB_TOKEN }}"
47-
- name: Enable auto-merge for Dependabot PRs
48-
if: ${{!contains(steps.metadata.outputs.dependency-names, 'maven-plugin-api') && (steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch')}}
49-
run: gh pr merge --auto --rebase "$PR_URL"
50-
env:
51-
PR_URL: ${{github.event.pull_request.html_url}}
52-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
7+
uses: davidmoten/workflows/.github/workflows/ci.yml@master

0 commit comments

Comments
 (0)