Skip to content

Commit af07b20

Browse files
committed
Remove build of the examples in the workflow
1 parent 16c611b commit af07b20

File tree

1 file changed

+0
-75
lines changed

1 file changed

+0
-75
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -18,81 +18,6 @@ concurrency:
1818
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'hibernate/hibernate-reactive' }}
1919

2020
jobs:
21-
run_examples:
22-
name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
23-
runs-on: ubuntu-latest
24-
strategy:
25-
matrix:
26-
example: [ 'session-example', 'native-sql-example' ]
27-
db: [ 'MySQL', 'PostgreSQL' ]
28-
exclude:
29-
# 'native-sql-example' doesn't run on MySQL because it has native queries
30-
- example: 'native-sql-example'
31-
db: 'MySQL'
32-
services:
33-
# Label used to access the service container
34-
mysql:
35-
# Docker Hub image
36-
image: mysql:8.0.31
37-
env:
38-
MYSQL_ROOT_PASSWORD: hreact
39-
MYSQL_DATABASE: hreact
40-
MYSQL_USER: hreact
41-
MYSQL_PASSWORD: hreact
42-
# Set health checks to wait until postgres has started
43-
options: >-
44-
--health-cmd="mysqladmin ping"
45-
--health-interval 10s
46-
--health-timeout 5s
47-
--health-retries 5
48-
ports:
49-
- 3306:3306
50-
postgres:
51-
# Docker Hub image
52-
image: postgres:15.0
53-
env:
54-
POSTGRES_DB: hreact
55-
POSTGRES_USER: hreact
56-
POSTGRES_PASSWORD: hreact
57-
# Set health checks to wait until postgres has started
58-
options: >-
59-
--health-cmd pg_isready
60-
--health-interval 10s
61-
--health-timeout 5s
62-
--health-retries 5
63-
ports:
64-
- 5432:5432
65-
steps:
66-
- uses: actions/checkout@v2
67-
- name: Get year/month for cache key
68-
id: get-date
69-
run: |
70-
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
71-
shell: bash
72-
- name: Cache Gradle downloads
73-
uses: actions/cache@v2
74-
id: cache-gradle
75-
with:
76-
path: |
77-
.gradle/caches
78-
.gradle/jdks
79-
.gradle/wrapper
80-
# refresh cache every month to avoid unlimited growth
81-
key: gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
82-
- name: Set up JDK 11
83-
uses: actions/setup-java@v2.2.0
84-
with:
85-
distribution: 'temurin'
86-
java-version: 11
87-
- name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
88-
run: ./gradlew :${{ matrix.example }}:runAllExamplesOn${{ matrix.db }}
89-
- name: Upload reports (if build failed)
90-
uses: actions/upload-artifact@v2
91-
if: failure()
92-
with:
93-
name: reports-examples-${{ matrix.db }}
94-
path: './**/build/reports/'
95-
9621
test_dbs:
9722
name: Test with ${{ matrix.db }}
9823
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)