Skip to content

Github Action: Check unit tests#158

Merged
kevinfodness merged 29 commits intomainfrom
feature/gh-action-unit-test
Jul 13, 2022
Merged

Github Action: Check unit tests#158
kevinfodness merged 29 commits intomainfrom
feature/gh-action-unit-test

Conversation

@renatonascalves
Copy link
Copy Markdown
Contributor

@renatonascalves renatonascalves commented Jul 11, 2022

As titled.

  • Fixes for ES: 8.3.2 | PHP: 8.0 will be added in a separate pull request.
  • Remove support for PHP 5-7.3 (PHP 7.4+)
  • Remove support for ES 1.x and 2.x
  • Support the latest 3 ES major versions
  • Deprecating Travis (including the bin/ bash files)

fixes #145

@renatonascalves renatonascalves self-assigned this Jul 11, 2022
@renatonascalves
Copy link
Copy Markdown
Contributor Author

🎉 This is ready for review! 🍡

Base automatically changed from feature/gh-actions to main July 12, 2022 21:37
Copy link
Copy Markdown
Member

@kevinfodness kevinfodness left a comment

Choose a reason for hiding this comment

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

Nice work. Left a few comments on things to be cleaned up before merge. 🍣

Comment on lines +12 to +15
php: [8.0]
es_version: [7.17.5]
multisite: [0]
wp_version: ["latest"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is confusing - in our conversation you said the PHP 8 check isn't being run? Is there a way to specify all items in the matrix on the same "level" vs. having some defined here and some in the include section?

Copy link
Copy Markdown
Contributor Author

@renatonascalves renatonascalves Jul 13, 2022

Choose a reason for hiding this comment

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

It is being run, ES: 8.3.2 is the one that is not running since there is no support for it yet.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is there a way to specify all items in the matrix on the same "level"

The problem I've found with the matrix is that it creates different job configurations outside of my predefined matrix.

The documentation goes more into detail: https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#using-a-matrix-strategy

At one time, I got 40+ job combinations. See here: https://github.com/alleyinteractive/searchpress/actions/runs/2656687756

sudo sysctl -w vm.max_map_count=262144

- name: Set up Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate from TravisCI to GitHub Actions

2 participants