Skip to content

Commit

Permalink
Disable button integration tests
Browse files Browse the repository at this point in the history
Now that the button is deployed, these are just causing noise when they
flake out. In the future, we probably should archive all of the button
code into a separate repo.
  • Loading branch information
obrok committed Aug 16, 2023
1 parent 576443f commit 2771ba4
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 140 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/_deploy_button.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Deploys button to testnet on push to main branch

on:
workflow_call:
inputs:
deploy:
description: Deploy the button contracts to devnet and trigger services update
required: false
default: false
type: boolean

jobs:
check-vars-and-secrets:
name: Check vars and secrets
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit

deploy-button:
if: inputs.deploy == true
name: Deploy the button contracts to devnet and trigger services update
needs: [check-vars-and-secrets]
uses: ./.github/workflows/contracts-deploy.yml
secrets: inherit

send-slack-notification:
name: Send Slack notification about workflow status
runs-on: ubuntu-20.04
needs: [deploy-button]
if: always()
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Send Slack message
uses: ./.github/actions/slack-notification
with:
notify-on: "failure"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_TRACK_APPLICATIONS }}
130 changes: 0 additions & 130 deletions .github/workflows/_run-button-e2e-tests.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/on-main-branch-commit-run-button-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ concurrency:

jobs:
main:
name: Check vars and secrets
uses: ./.github/workflows/_run-button-e2e-tests.yml
name: Deploy button
uses: ./.github/workflows/_deploy_button.yml
with:
deploy: true
secrets: inherit
8 changes: 0 additions & 8 deletions .github/workflows/on-pull-request-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,3 @@ jobs:
name: Delete featurenet
uses: ./.github/workflows/_delete-featurenet.yml
secrets: inherit

run-e2e-button-contracts-tests:
if: github.event.label.name == 'trigger:run-button-e2e-tests'
name: Run e2e button game contract tests
uses: ./.github/workflows/_run-button-e2e-tests.yml
with:
deploy: false
secrets: inherit

0 comments on commit 2771ba4

Please sign in to comment.