Skip to content

Bump org.postgresql:postgresql from 42.3.1 to 42.7.2 #47

Bump org.postgresql:postgresql from 42.3.1 to 42.7.2

Bump org.postgresql:postgresql from 42.3.1 to 42.7.2 #47

Workflow file for this run

name: Test and Publish
on:
push:
pull_request:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'zulu'
- name: Create test database
env:
PGPASSWORD: postgres
run: |
createuser -h localhost -p 5432 -U postgres ukrdc
JTRACE_DDL=Database/DDL
echo "Create JTRACE database with script ${JTRACE_DDL}/JTRACE.DDL"
psql -h localhost -p 5432 -U postgres -f ${JTRACE_DDL}/JTRACE.DDL
for s in ${JTRACE_DDL}/*.SQL; do echo "Running script ${s}"; psql -h localhost -p 5432 -U postgres JTRACE -f $s; done
- name: Test with Maven
run: mvn test
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'zulu'
- name: Package with Maven
run: mvn -DskipTests --batch-mode package
- uses: actions/upload-artifact@v2
if: ${{ github.event_name != 'pull_request' }}
with:
name: Package
path: target/*.jar
retention-days: 30
publish:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'zulu'
- name: Publish to GitHub Packages Apache Maven
run: mvn -DskipTests --batch-mode deploy
env:
GITHUB_TOKEN: ${{ github.token }}