# Problem with actions in github

**URL:** <https://racket.discourse.group/t/problem-with-actions-in-github/3851>\
**Category:** Internals\
**Created:** [July 12, 2025, 9:14pm UTC](https://racket.discourse.group/t/problem-with-actions-in-github/3851 "2025-07-12T21:14:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gus-massa](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/gus-massa/32/507_2.png) [@gus-massa](https://racket.discourse.group/u/gus-massa)\
**Post date:** [July 12, 2025, 9:14pm UTC](https://racket.discourse.group/t/problem-with-actions-in-github/3851/1 "2025-07-12T21:14:43Z")

</div>

When I push a branch to my fork [GitHub - gus-massa/racket: The Racket repository](https://github.com/gus-massa/racket) the actions/tests are not run. The test run when send a PR upstream. Do I have to enable them somewhere?

PS: The tests run both in my fork [GitHub - gus-massa/ChezScheme: Chez Scheme](https://github.com/gus-massa/ChezScheme) when I push a branch there and when I send the PR upstream.

---

<div class="post-metadata">

**Author:** ![shhyou](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@shhyou](https://racket.discourse.group/u/shhyou)\
**Post date:** [July 14, 2025, 11:35pm UTC](https://racket.discourse.group/t/problem-with-actions-in-github/3851/2 "2025-07-14T23:35:49Z")

</div>

I think the action is set to run on push only for the main branch. Otherwise, only PR would run the tests. Deleting these conditions locally in your branch is another option.

> **[Blaming racket/.github/workflows/ci-push-x86\_linux.yml at master ·...](https://github.com/gus-massa/racket/blame/master/.github/workflows/ci-push-x86_linux.yml#L6)**
>
> The Racket repository. Contribute to gus-massa/racket development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![gus-massa](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/gus-massa/32/507_2.png) [@gus-massa](https://racket.discourse.group/u/gus-massa)\
**Post date:** [July 15, 2025, 11:44am UTC](https://racket.discourse.group/t/problem-with-actions-in-github/3851/3 "2025-07-15T11:44:32Z")

</div>

Thanks. I'm not sure if this has been discussed before, but from [https://stackoverflow.com/questions/57699839/github-actions-how-to-target-all-branches-except-master](https://stackoverflow.com/questions/57699839/github-actions-how-to-target-all-branches-except-master) it's possible to use

```scheme
on:
  push:
    branches:    
      - '**'

```

to run the test is every branch. The change is not very useful in the main repository, but it would be helpful for people writing PR before they send the PR. Are some of these workflow run automatically weekly or monthly and it would be bad to have too many of them enabled?

---

<div class="post-metadata">

**Author:** ![shhyou](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@shhyou](https://racket.discourse.group/u/shhyou)\
**Post date:** [July 15, 2025, 11:34pm UTC](https://racket.discourse.group/t/problem-with-actions-in-github/3851/4 "2025-07-15T23:34:26Z")

</div>

Triggering the checks for any branch would mean running the tests twice for every push to every PR. That may have been why @sorawee added the condition.

(FWIW, the push CIs have lots of configurations; the PR checks have much fewer ones.)
