-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grails 7: further work and get tests working
- Loading branch information
Showing
25 changed files
with
269 additions
and
506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Java CI | ||
on: | ||
push: | ||
branches: | ||
- '[5-9]+.[0-9]+.x' | ||
pull_request: | ||
branches: | ||
- '[5-9]+.[0-9]+.x' | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKSPACE: ${{ github.workspace }} | ||
GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
- name: Run Tests | ||
if: github.event_name == 'pull_request' | ||
id: tests | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: check -Dgeb.env=chromeHeadless | ||
- name: Run Build | ||
if: github.event_name == 'push' | ||
id: build | ||
uses: gradle/gradle-build-action@v2 | ||
env: | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
with: | ||
arguments: build -Dgeb.env=chromeHeadless | ||
- name: Publish Test Report | ||
if: steps.build.outcome == 'failure' || steps.tests.outcome == 'failure' | ||
uses: scacap/action-surefire-report@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
report_paths: '**/build/test-results/test/TEST-*.xml' | ||
#- name: Publish to repo.grails.org | ||
# id: publish | ||
# uses: gradle/gradle-build-action@v2 | ||
# if: steps.build.outcome == 'success' && github.event_name == 'push' | ||
# env: | ||
# ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | ||
# ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
# with: | ||
# arguments: -Dorg.gradle.internal.publish.checksums.insecure=true publish | ||
#- name: Build Documentation | ||
# id: docs | ||
# uses: gradle/gradle-build-action@v2 | ||
# with: | ||
# arguments: docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,137 +1,69 @@ | ||
--- | ||
grails: | ||
profile: web | ||
codegen: | ||
defaultPackage: misc.functional.test.app | ||
spring: | ||
transactionManagement: | ||
proxies: false | ||
gorm: | ||
reactor: | ||
# Whether to translate GORM events into Reactor events | ||
# Disabled by default for performance reasons | ||
events: false | ||
info: | ||
app: | ||
name: '@info.app.name@' | ||
version: '@info.app.version@' | ||
grailsVersion: '@info.app.grailsVersion@' | ||
spring: | ||
main: | ||
banner-mode: "off" | ||
groovy: | ||
template: | ||
check-template-location: false | ||
|
||
# Spring Actuator Endpoints are Disabled by Default | ||
endpoints: | ||
enabled: false | ||
jmx: | ||
enabled: true | ||
app: | ||
name: '@info.app.name@' | ||
version: '@info.app.version@' | ||
grailsVersion: '@info.app.grailsVersion@' | ||
grails: | ||
mime: | ||
disable: | ||
accept: | ||
header: | ||
userAgents: | ||
- Gecko | ||
- WebKit | ||
- Presto | ||
- Trident | ||
types: | ||
all: '*/*' | ||
atom: application/atom+xml | ||
css: text/css | ||
csv: text/csv | ||
form: application/x-www-form-urlencoded | ||
html: | ||
- text/html | ||
- application/xhtml+xml | ||
js: text/javascript | ||
json: | ||
- application/json | ||
- text/json | ||
multipartForm: multipart/form-data | ||
pdf: application/pdf | ||
rss: application/rss+xml | ||
text: text/plain | ||
hal: | ||
- application/hal+json | ||
- application/hal+xml | ||
xml: | ||
- text/xml | ||
- application/xml | ||
views: | ||
gsp: | ||
encoding: UTF-8 | ||
htmlcodec: xml | ||
codecs: | ||
expression: html | ||
scriptlet: html | ||
taglib: none | ||
staticparts: none | ||
default: | ||
codec: html | ||
dataSource: | ||
url: jdbc:h2:mem:devDb;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE | ||
driverClassName: org.h2.Driver | ||
username: sa | ||
password: '' | ||
pooled: true | ||
jmxExport: true | ||
dbCreate: update | ||
hibernate: | ||
cache: | ||
queries: false | ||
use_second_level_cache: false | ||
use_query_cache: false | ||
|
||
--- | ||
grails: | ||
plugin: | ||
springsecurity: | ||
userLookup: | ||
user-domain-class-name: com.testacl.User | ||
mime: | ||
disable: | ||
accept: | ||
header: | ||
userAgents: | ||
- Gecko | ||
- WebKit | ||
- Presto | ||
- Trident | ||
types: | ||
all: '*/*' | ||
atom: application/atom+xml | ||
css: text/css | ||
csv: text/csv | ||
form: application/x-www-form-urlencoded | ||
html: | ||
- text/html | ||
- application/xhtml+xml | ||
js: text/javascript | ||
json: | ||
- application/json | ||
- text/json | ||
multipartForm: multipart/form-data | ||
pdf: application/pdf | ||
rss: application/rss+xml | ||
text: text/plain | ||
hal: | ||
- application/hal+json | ||
- application/hal+xml | ||
xml: | ||
- text/xml | ||
- application/xml | ||
urlmapping: | ||
cache: | ||
maxsize: 1000 | ||
controllers: | ||
defaultScope: singleton | ||
converters: | ||
encoding: UTF-8 | ||
views: | ||
default: | ||
codec: html | ||
gsp: | ||
encoding: UTF-8 | ||
htmlcodec: xml | ||
codecs: | ||
expression: html | ||
scriptlets: html | ||
taglib: none | ||
staticparts: none | ||
endpoints: | ||
jmx: | ||
unique-names: true | ||
|
||
--- | ||
hibernate: | ||
cache: | ||
queries: false | ||
use_second_level_cache: false | ||
use_query_cache: false | ||
|
||
dataSource: | ||
pooled: true | ||
jmxExport: true | ||
driverClassName: org.h2.Driver | ||
username: sa | ||
password: '' | ||
|
||
environments: | ||
development: | ||
dataSource: | ||
dbCreate: create-drop | ||
url: jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE | ||
test: | ||
dataSource: | ||
dbCreate: update | ||
url: jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE | ||
production: | ||
dataSource: | ||
dbCreate: none | ||
url: jdbc:h2:./prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE | ||
properties: | ||
jmxEnabled: true | ||
initialSize: 5 | ||
maxActive: 50 | ||
minIdle: 5 | ||
maxIdle: 25 | ||
maxWait: 10000 | ||
maxAge: 600000 | ||
timeBetweenEvictionRunsMillis: 5000 | ||
minEvictableIdleTimeMillis: 60000 | ||
validationQuery: SELECT 1 | ||
validationQueryTimeout: 3 | ||
validationInterval: 15000 | ||
testOnBorrow: true | ||
testWhileIdle: true | ||
testOnReturn: false | ||
jdbcInterceptors: ConnectionState | ||
defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.