-
Notifications
You must be signed in to change notification settings - Fork 14
60 lines (48 loc) · 2.28 KB
/
run_scenarios.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
# This is a basic workflow to help you get started with Actions
name: Liquibase_CLI_GitHub-Hosted
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
workflow_dispatch:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
LBJobCLI:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: RunLiquibaseCLICommands
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
uses: actions/checkout@v2
# Runs a set of commands using the runners shell
- run: |
curl -L https://github.com/liquibase/liquibase/releases/download/v${LB_VERSION}/liquibase-${LB_VERSION}.zip --output liquibase-${LB_VERSION}.zip
unzip -o -d liquibase liquibase-${LB_VERSION}.zip
./liquibase/liquibase --version
cd generate_changelog_from_sql_files
echo "running the generate_changelog_from_sql_files scenario with runwith:sqlplus changeset attribute"
echo "./plainSqlToSqlPlusChangeLog.sh SampleSqlScripts changeLog.sql"
./plainSqlToSqlPlusChangeLog.sh SampleSqlScripts changeLog.sql
echo "Outputted changelog:"
cat changeLog.sql
# Uncomment the line below to save changes. Also, see environment variables under "env" and assign variables accordingly
#git config --global user.email $user.email; git config --global user.name $user.name; git config pull.rebase false; git add .; git commit -m $"message"; git push -u origin $branch
env:
user.email: "<email>"
user.name: "<username>"
message: "<enter commit message>"
branch: "<git branch name>"
LB_VERSION: "4.5.0"
LBJobMaven:
runs-on: ubuntu-latest
steps:
- name: RunLiquibaseWithSpringboot
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
uses: actions/checkout@v2
- run: |
cd project_examples/liquibase-springboot
mvn clean package