From 6c2c7824c8cb0c8df335aa2f3d6de69629184afa Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Fri, 16 Jul 2021 21:54:04 +0200 Subject: [PATCH 1/2] Use bot account for integration tests Resolves #16 --- .github/workflows/local-test.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/local-test.yml b/.github/workflows/local-test.yml index 8b86893..689df92 100644 --- a/.github/workflows/local-test.yml +++ b/.github/workflows/local-test.yml @@ -25,9 +25,9 @@ jobs: - name: Send a stream message uses: ./ with: - username: 'ggrossetie@yuzutech.fr' + username: 'it-bot@github-actions-test.zulipchat.com' api-key: ${{ secrets.ZULIP_API_KEY }} - organization-url: 'https://kroki.zulipchat.com' + organization-url: 'https://github-actions-test.zulipchat.com' to: 'test' type: 'stream' topic: 'github actions' @@ -36,10 +36,10 @@ jobs: - name: Send a private message uses: ./ with: - username: 'ggrossetie@yuzutech.fr' + username: 'it-bot@github-actions-test.zulipchat.com' api-key: ${{ secrets.ZULIP_API_KEY }} - organization-url: 'https://kroki.zulipchat.com' - to: '282093' + organization-url: 'https://github-actions-test.zulipchat.com' + to: '423060' type: 'private' content: 'With mirth and laughter let old wrinkles come.' if: ${{ steps.enable_integration_tests.outputs.value == 'true' }} @@ -55,8 +55,8 @@ jobs: - name: Missing API key and password uses: ./ with: - username: 'ggrossetie@yuzutech.fr' - organization-url: 'https://kroki.zulipchat.com' + username: 'it-bot@github-actions-test.zulipchat.com' + organization-url: 'https://github-actions-test.zulipchat.com' to: 'test' type: 'stream' topic: 'github actions' @@ -65,7 +65,7 @@ jobs: - name: Wrong organization URL uses: ./ with: - username: 'ggrossetie@yuzutech.fr' + username: 'it-bot@github-actions-test.zulipchat.com' api-key: ${{ secrets.ZULIP_API_KEY }} organization-url: 'https://org.zulipchat.com' to: '282093' From 9b43215f58132b00b117cfc1d82f0f92169add1f Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Fri, 16 Jul 2021 22:38:50 +0200 Subject: [PATCH 2/2] Fix integration tests --- .github/workflows/local-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/local-test.yml b/.github/workflows/local-test.yml index 689df92..276f858 100644 --- a/.github/workflows/local-test.yml +++ b/.github/workflows/local-test.yml @@ -25,7 +25,7 @@ jobs: - name: Send a stream message uses: ./ with: - username: 'it-bot@github-actions-test.zulipchat.com' + email: 'it-bot@github-actions-test.zulipchat.com' api-key: ${{ secrets.ZULIP_API_KEY }} organization-url: 'https://github-actions-test.zulipchat.com' to: 'test' @@ -36,7 +36,7 @@ jobs: - name: Send a private message uses: ./ with: - username: 'it-bot@github-actions-test.zulipchat.com' + email: 'it-bot@github-actions-test.zulipchat.com' api-key: ${{ secrets.ZULIP_API_KEY }} organization-url: 'https://github-actions-test.zulipchat.com' to: '423060' @@ -55,7 +55,7 @@ jobs: - name: Missing API key and password uses: ./ with: - username: 'it-bot@github-actions-test.zulipchat.com' + email: 'it-bot@github-actions-test.zulipchat.com' organization-url: 'https://github-actions-test.zulipchat.com' to: 'test' type: 'stream' @@ -65,7 +65,7 @@ jobs: - name: Wrong organization URL uses: ./ with: - username: 'it-bot@github-actions-test.zulipchat.com' + email: 'it-bot@github-actions-test.zulipchat.com' api-key: ${{ secrets.ZULIP_API_KEY }} organization-url: 'https://org.zulipchat.com' to: '282093'