Skip to content

Commit

Permalink
fix: add triggers for later stages of consistency test
Browse files Browse the repository at this point in the history
  • Loading branch information
Reillyhewitson committed Feb 23, 2023
1 parent 3b0da8a commit 2d7d677
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ jobs:
run: poetry run python -m util.icat_db_generator
- name: Drop modTime and createTime
run: mysql -picatdbuserpw -uicatdbuser icatdb < /home/runner/work/datagateway-api/datagateway-api/util/columns_to_drop.sql
- name: Get SQL dump of dummy data to be prepared
- name: Get SQL dump of dummy data
run: mysqldump -picatdbuserpw -uicatdbuser --skip-comments icatdb > ~/generator_script_dump_1.sql

# Drop and re-create icatdb to remove generated data
Expand All @@ -305,6 +305,8 @@ jobs:
# Regenerate table structure of icatdb
- name: Reinstall ICAT Server
run: cd /home/runner/install/icat.server; ./setup -vv install
- name: Add ICAT 5 triggers
run: cd /home/runner/install/icat.server; mysql -picatdbuserpw -uicatdbuser icatdb < create_triggers_mysql_5_0.sql

- name: Add (new) dummy data to icatdb
run: |
Expand All @@ -326,6 +328,8 @@ jobs:
# Regenerate table structure of icatdb
- name: Reinstall ICAT Server
run: cd /home/runner/install/icat.server; ./setup -vv install
- name: Add ICAT 5 triggers
run: cd /home/runner/install/icat.server; mysql -picatdbuserpw -uicatdbuser icatdb < create_triggers_mysql_5_0.sql

- name: Checkout DataGateway API (default branch)
uses: actions/checkout@v2
Expand Down

0 comments on commit 2d7d677

Please sign in to comment.