-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (64 loc) · 1.69 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Run tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build-with-gradle:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
cache: 'gradle'
distribution: 'temurin'
- name: Build & test
uses: gradle/gradle-build-action@v3
with:
arguments: clean test -Dselenide.headless=true --info --rerun-tasks
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-report-gradle
path: |
**/build/reports
**/build/test-results
build-with-maven:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
cache: 'maven'
distribution: 'temurin'
- name: build & test
run: ./mvnw clean test -Dselenide.headless=true
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-report-gradle
path: |
**/test/surefire-reports
auto-merge-dependabot:
name: 🤖 Auto merge dependabot PR
timeout-minutes: 10
needs: [ build-with-gradle, build-with-maven ]
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: 🤖 Merge PR from dependabot
uses: fastify/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
target: minor
merge-method: rebase