-
Notifications
You must be signed in to change notification settings - Fork 16
83 lines (68 loc) · 2.61 KB
/
upgrade-oracle.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Oracle Database Upgrade
on:
push:
branches:
- 'master'
pull_request:
concurrency: # cancel on PR pushes
# More info: https://stackoverflow.com/a/68422069/253468
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release' ) && format('ci-master-{0}', github.sha) || format('ci-master-{0}', github.ref) }}
cancel-in-progress: true
env:
MAVEN_OPTS: -Djava.awt.headless=true -Xms8G -Xmx12G -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dtest.persistence.unit=brmo.persistence.oracle
MAVEN_VERSION: '3.9.9'
jobs:
build:
name: 'Oracle DB'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: 'Cache test data en laatste release'
uses: actions/cache@v4
with:
path: ~/downloads
key: downloads-${{ hashFiles('**/pom.xml') }}
restore-keys: |
downloads-
- name: 'Set up JDK'
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ env.MAVEN_VERSION }}
- name: 'datamodel Priming build'
run: |
mvn clean install -Dmaven.test.skip=true -Ddocker.skip=true -Dtest.onlyITs= -B -V -fae -pl 'datamodel' -am -DskipQA=true
- name: 'Get last release'
run: |
.build/ci/getlastRelease.sh
- name: 'Setup Oracle DB'
run: |
./.build/ci/oracle-start-docker.sh oracle-xe:21.3.0-full
./.build/ci/oracle-setup-previous.sh
- name: 'Upgrade databases'
run: |
.build/ci/oracle-execute-upgrades.sh staging
.build/ci/oracle-execute-upgrades.sh rsgb
.build/ci/oracle-execute-upgrade-extras.sh rsgb
.build/ci/oracle-execute-upgrades.sh rsgbbgt
.build/ci/oracle-execute-upgrades.sh bag
.build/ci/oracle-execute-upgrades.sh brk
- name: 'Test'
run: |
mvn -e -B -Poracle -pl 'datamodel' resources:testResources compiler:testCompile surefire:test -Dtest='*UpgradeTest' -Ddatabase.upgrade=true -DskipQA=true
- name: 'Upload coverage to Codecov'
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: 'Cleanup build artifacts'
run: |
mvn clean build-helper:remove-project-artifact
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}