Skip to content

Commit

Permalink
#236: Add skip comments option to satisfy diff
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Jun 4, 2021
1 parent 80afd12 commit 04c033a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ jobs:
- name: Add dummy data to icatdb
run: poetry run python -m util.icat_db_generator
- name: Get SQL dump of dummy data
run: mysqldump -picatdbuserpw -uicatdbuser icatdb > ~/generator_script_dump_1.sql
run: mysqldump -picatdbuserpw -uicatdbuser --skip-comments icatdb > ~/generator_script_dump_1.sql

# Drop and re-create icatdb to remove generated data
- name: Drop icatdb
Expand All @@ -227,7 +227,7 @@ jobs:
run: |
cd /home/runner/work/datagateway-api/datagateway-api; poetry run python -m util.icat_db_generator
- name: Get SQL dump of new dummy data
run: mysqldump -picatdbuserpw -uicatdbuser icatdb > ~/generator_script_dump_2.sql
run: mysqldump -picatdbuserpw -uicatdbuser --skip-comments icatdb > ~/generator_script_dump_2.sql

- name: Diff SQL dumps
run: diff -s ~/generator_script_dump_1.sql ~/generator_script_dump_2.sql

0 comments on commit 04c033a

Please sign in to comment.