Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pull_request to on events list for CI #4604

Merged
merged 2 commits into from
Aug 14, 2019
Merged

Conversation

lildude
Copy link
Member

@lildude lildude commented Aug 13, 2019

Description

When switching from Travis to GitHub Actions, I missed out that we need to trigger builds for the pull_request event else CI won't run for PRs submitted from forks.

This isn't very clear from the docs or the available examples.

I'm also taking this opportunity to use more descriptive names so the checks look better.

Before:

Screenshot 2019-08-13 at 10 57 13

After:

Screenshot 2019-08-13 at 10 59 35

I'll update the list of required status checks once this PR has been merged.

[Template removed as it is not relevant]

This is needed for pull requests submitted via forks.
@lildude
Copy link
Member Author

lildude commented Aug 13, 2019

I'll update the list of required status checks once this PR has been merged.

No I won't. I can do it now they've passed 😄

@lildude
Copy link
Member Author

lildude commented Aug 13, 2019

And yes, it is known that certain events that happen when modifying a pull request, eg labelling, requesting reviewers etc, cause CI to run again even if the actual code hasn't changed. The ability to filter those is coming 🔜

@Alhadis
Copy link
Collaborator

Alhadis commented Aug 13, 2019

Would it be possible to use GitHub Actions to automate some of our scripts? Stuff like script/add‑grammar and script/list‑grammars still needs to be run manually (and in a local checkout, at that), despite requiring little or no intervention from the user.

I know absolutely nothing about GitHub Actions, so forgive me if this is a dumb question.

@lildude
Copy link
Member Author

lildude commented Aug 14, 2019

Would it be possible to use GitHub Actions to automate some of our scripts? Stuff like script/add‑grammar and script/list‑grammars still needs to be run manually (and in a local checkout, at that), despite requiring little or no intervention from the user.

Most definitely, though I'm not sure how much success we'd have with automating script/add‑grammar right now as we've still got quite a few outstanding issues (#3924). Once we've got those all sorted, I don't see why we couldn't do this automatically.

@lildude lildude merged commit 9677d1a into master Aug 14, 2019
@lildude lildude deleted the lildude/add-pull_request branch August 14, 2019 08:54
@lildude
Copy link
Member Author

lildude commented Aug 14, 2019

Oooof. Looks like something has changed around the UTF-8 encoding on the underlying CI env since the tests on this PR last passed and merging. Digging into it now.

@Alhadis
Copy link
Collaborator

Alhadis commented Aug 14, 2019

Try setting LANG=en.UTF-8 in the environment if it's missing. That's what solves a similar encoding issue I always get when running tests on OpenBSD.

@lildude
Copy link
Member Author

lildude commented Aug 14, 2019

Try setting LANG=en.UTF-8 in the environment if it's missing. That's what solves a similar encoding issue I always get when running tests on OpenBSD.

Read my mind. It was the the first thing I was going to try as Docker has the same issue and really should have remembered this as I stumble upon it almost every time I touch docker 😄

@Alhadis
Copy link
Collaborator

Alhadis commented Aug 14, 2019

Heh. Since a Docker port doesn't exist on OpenBSD, I actually solved two problems at once by having a shell-script named docker in my $PATH:

#!/bin/sh
export LANG=en_AU.UTF-8

Not sure if this is the best or worst hack I've ever thought of (okay, definitely not the worst...). I can't export LANG in my dotfiles because it does screwy things with other locale-related variables (LC_COLLATE, etc)... 😞

@melvisglez
Copy link

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e8252244b6..5b11077efa 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,9 +1,10 @@
-name: CI
+name: Run Tests

-on: [push]
+on: [push, pull_request]

jobs:

  • build:
  • run:
  • name: Ruby ${{ matrix.ruby }}
    runs-on: ubuntu-latest
    strategy:
    matrix:

@iheanyi iheanyi restored the lildude/add-pull_request branch August 15, 2019 16:28
@iheanyi iheanyi deleted the lildude/add-pull_request branch August 15, 2019 19:58
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants