-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from lucee/LDEV-5137-update-to-42.7.4
LDEV-5137 update postgres jdbc to 42.7.4
- Loading branch information
Showing
4 changed files
with
142 additions
and
21 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,63 @@ | ||
# This workflow will build a Java project with Ant | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant | ||
|
||
name: Java CI - 5.4 | ||
|
||
on: [push, pull_request,workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
luceeVersionQuery: 5.4/all/light | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
- name: Cache Maven packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2 | ||
key: maven-cache | ||
- name: Cache Lucee files | ||
uses: actions/cache@v4 | ||
with: | ||
path: _actions/lucee/script-runner/main/lucee-download-cache | ||
key: lucee-downloads | ||
- name: Set up postgres (local) | ||
run: | | ||
sudo /etc/init.d/postgresql start | ||
sudo -u postgres psql -c 'create database lucee;' | ||
sudo -u postgres psql -c "create user lucee with encrypted password 'lucee'"; | ||
sudo -u postgres psql -c 'grant all privileges on database lucee to lucee;' | ||
- name: Build extension-jdbc-postgres with Ant | ||
run: ant -noinput -verbose -buildfile build.xml | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: postgres-lex | ||
path: dist/*.lex | ||
- name: Checkout Lucee | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: lucee/lucee | ||
path: lucee | ||
- name: Run Lucee Test Suite, labels="postgres" | ||
uses: lucee/script-runner@main | ||
with: | ||
webroot: ${{ github.workspace }}/lucee/test | ||
execute: /bootstrap-tests.cfm | ||
luceeVersion: ${{ env.luceeVersion }} | ||
luceeVersionQuery: ${{ env.luceeVersionQuery }} | ||
extensionDir: ${{ github.workspace }}/dist | ||
env: | ||
testLabels: postgres | ||
POSTGRES_SERVER: localhost | ||
POSTGRES_USERNAME: lucee | ||
POSTGRES_PASSWORD: lucee | ||
POSTGRES_PORT: 5432 | ||
POSTGRES_DATABASE: lucee |
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,64 @@ | ||
# This workflow will build a Java project with Ant | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant | ||
|
||
name: Java CI - 6.0 | ||
|
||
on: [push, pull_request,workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
luceeVersionQuery: 6.0/all/light | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
- name: Cache Maven packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2 | ||
key: maven-cache | ||
- name: Cache Lucee files | ||
uses: actions/cache@v4 | ||
with: | ||
path: _actions/lucee/script-runner/main/lucee-download-cache | ||
key: lucee-downloads | ||
- name: Set up Postgres (local) | ||
run: | | ||
sudo /etc/init.d/postgresql start | ||
sudo -u postgres psql -c 'create database lucee;' | ||
sudo -u postgres psql -c "create user lucee with encrypted password 'lucee'"; | ||
sudo -u postgres psql -c 'grant all privileges on database lucee to lucee;' | ||
- name: Build extension-jdbc-postgres with Ant | ||
run: ant -noinput -verbose -buildfile build.xml | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: postgres-lex | ||
path: dist/*.lex | ||
- name: Checkout Lucee | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: lucee/lucee | ||
path: lucee | ||
- name: Run Lucee Test Suite, labels="postgres" | ||
uses: lucee/script-runner@main | ||
with: | ||
webroot: ${{ github.workspace }}/lucee/test | ||
execute: /bootstrap-tests.cfm | ||
luceeVersion: ${{ env.luceeVersion }} | ||
luceeVersionQuery: ${{ env.luceeVersionQuery }} | ||
extensionDir: ${{ github.workspace }}/dist | ||
env: | ||
testLabels: postgres | ||
POSTGRES_SERVER: localhost | ||
POSTGRES_USERNAME: lucee | ||
POSTGRES_PASSWORD: lucee | ||
POSTGRES_PORT: 5432 | ||
POSTGRES_DATABASE: lucee |
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
Binary file not shown.