diff --git a/.github/workflows/test-app.yaml b/.github/workflows/test-app.yaml index de3f038e..baa58b62 100644 --- a/.github/workflows/test-app.yaml +++ b/.github/workflows/test-app.yaml @@ -4,16 +4,29 @@ on: push: branches: - main - pull_request: + pull_request_target: + types: [opened, synchronize, edited] branches: - main jobs: + access_check: + runs-on: ubuntu-latest + steps: + - name: Check user permissions + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.author_association != 'MEMBER' }} + run: | + echo "Action was not triggered by an organization member. Exiting now." + exit 1 + cypress-run: runs-on: ubuntu-latest + needs: access_check steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Cypress run uses: cypress-io/github-action@v6 @@ -25,4 +38,3 @@ jobs: env: NEXT_PUBLIC_HEIMDALL_URL: "${{ secrets.HEIMDALL_URL }}" CYPRESS_HEIMDALL_URL: "${{ secrets.HEIMDALL_URL }}" - diff --git a/packages/nextjs/pages/index.tsx b/packages/nextjs/pages/index.tsx index d591d8b6..b02463c8 100644 --- a/packages/nextjs/pages/index.tsx +++ b/packages/nextjs/pages/index.tsx @@ -17,6 +17,8 @@ import { useAbiNinjaState } from "~~/services/store/store"; import { parseAndCorrectJSON } from "~~/utils/abi"; import { notification } from "~~/utils/scaffold-eth"; +// console.log("Hello world"); + enum TabName { verifiedContract, addressAbi,