Skip to content

Commit

Permalink
Updated testing-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kirdatatjana committed Sep 25, 2024
1 parent 1526ef7 commit 642f338
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/testing-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

permissions:
contents: write
pull-requests: write # 'write' access to pull requests
pull-requests: write # 'write' access to pull requests in order to update test documentation automatically

jobs:
testing-docs:
Expand Down Expand Up @@ -40,16 +40,12 @@ jobs:
if: env.GIT_DIFF
run: make build-testing-docs

- name: Check for changes
- name: Check for changes and update automatically
if: env.GIT_DIFF
id: check_changes
id: check_changes_and_update
run: |
git show HEAD:scripts/test_doc/test_documentation.md > committed_file.md
cp scripts/test_doc/test_documentation.md generated_file.md
if ! diff -q generated_file.md committed_file.md; then
if ! git diff --exit-code HEAD:scripts/test_doc/test_documentation.md scripts/test_doc/test_documentation.md; then
echo "Documentation for integration tests is out of date. Updating and pushing changes..."
cp generated_file.md scripts/test_doc/test_documentation.md
if [ -n "$GITHUB_HEAD_REF" ]; then
branch=$GITHUB_HEAD_REF
else
Expand All @@ -58,13 +54,13 @@ jobs:
git fetch origin $branch
git checkout $branch
cp generated_file.md scripts/test_doc/test_documentation.md
cp scripts/test_doc/test_documentation.md scripts/test_doc/test_documentation.md
git config user.name "github-actions"
git config user.email "[email protected]"
git add scripts/test_doc/test_documentation.md
git commit -m "Update testing documentation"
git push origin "$branch"
exit 1
Expand Down
1 change: 1 addition & 0 deletions tests/integration/changeover.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
// * creates a transfer channel between the two chains
// * transitions the standalone chain to a consumer chain
// * confirms that no extra transfer channel is created, thus only one transfer channel and one CCV channel exist.
// testing
func (suite *CCVTestSuite) TestRecycleTransferChannel() {
consumerKeeper := suite.consumerApp.GetConsumerKeeper()

Expand Down

0 comments on commit 642f338

Please sign in to comment.