Skip to content

Commit

Permalink
[CI] run acc tests on pull_request_target only (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-sidelnikov authored Dec 18, 2024
1 parent c35f3bd commit 94247b8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
pull_request:
types:
- opened
- synchronize
types: [opened, synchronize]
pull_request_target:
types: [opened, synchronize]
workflow_dispatch:

env:
Expand Down Expand Up @@ -46,6 +46,9 @@ jobs:

acc_tests:
name: acceptance tests
if: >
github.event_name == 'pull_request_target' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false)
runs-on: ubuntu-latest
environment: tests
steps:
Expand All @@ -64,7 +67,12 @@ jobs:

eco_check:
name: eco/check
if: always()
if: >
always() &&
(
github.event_name == 'pull_request_target' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false)
)
needs: [lint, vet, unit_tests, acc_tests]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 94247b8

Please sign in to comment.