From 95f008e1be7611814c2c099cc29b1244f177cd6c Mon Sep 17 00:00:00 2001 From: Derek Cormier Date: Mon, 8 Jan 2024 19:05:29 -0800 Subject: [PATCH] fix: run e2e tests on pushes to main --- .github/workflows/ci.yaml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6c90d6a..873a43c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,7 +26,7 @@ jobs: # Don't run e2es on PRs from forks as it requires access to secrets # when using `pull_request`. # See https://securitylab.github.com/research/github-actions-preventing-pwn-requests - if: ${{ github.event.pull_request.head.repo.full_name == 'bazel-contrib/publish-to-bcr' }} + if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'bazel-contrib/publish-to-bcr' }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -43,16 +43,3 @@ jobs: version: ">= 363.0.0" - run: yarn install --frozen-lockfile - run: yarn e2e - - # Join CI jobs into a single status so that only one status needs to be - # marked as required under branch protection rules. - all_ci_tests: - runs-on: ubuntu-latest - needs: - - test - - e2e - if: ${{ always() }} - steps: - - uses: cgrindel/gha_join_jobs@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }}