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

Build: Switch from Travis to GitHub actions #2021

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

fnagel
Copy link
Member

@fnagel fnagel commented Nov 22, 2021

Replaces Travis functionality.

Follow up tasks:

  • Remove Travis / Github webhook

Comment on lines 3 to 12
on:
push:
branches:
- '*'
pull_request:
types:
- opened
- edited
- reopened
- synchronize
Copy link
Member

@mgol mgol Nov 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we try to rely more on defaults here, like in https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#example-using-a-list-of-events?

Suggested change
on:
push:
branches:
- '*'
pull_request:
types:
- opened
- edited
- reopened
- synchronize
on: [push, pull_request]

In particular, the edited event seems to run when a review is edited if I understand it correctly. Docs are pretty scarce on what each event means, unfortunately...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this from one of my projects and afair I did this so tags don't trigger a run as my project had much more jobs and was "expensive". Let's go with the default and change it if needed. I've changed this to your suggestion.

Travis has been replaced with GitHub Actions.
See 63c98b8
@fnagel fnagel force-pushed the tests-github-actions branch from 4a06009 to e73861b Compare November 23, 2021 22:25
@fnagel fnagel requested a review from mgol November 25, 2021 21:32
Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Too bad we can't try it on the PR for some reason but let's get it merged and we'll see if that works.

@mgol mgol added this to the 1.13.1 milestone Nov 30, 2021
@mgol mgol changed the title Tests GitHub actions Build: Switch from Travis to GitHub actions Nov 30, 2021
@mgol mgol merged commit e0a78d4 into jquery:main Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants