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

Display upstream test in actions #1057

Merged

Conversation

abelsromero
Copy link
Member

Thank you for opening a pull request and contributing to AsciidoctorJ!

Please take a bit of time giving some details about your pull request:

Kind of change

  • Bug fix
  • New non-breaking feature
  • New breaking feature
  • Documentation update
  • Build improvement

Description

What is the goal of this pull request?

Improve GH actions configuration to display Asciidoctor upstream test.

How does it achieve that?

Extracts previous step of build job into its own job.
The new job will run when linux, mac & windows build succeed.

Are there any alternative ways to implement this?

We could maintin it as it is, the problem is that to check if upstream is running, we need to go into a specific build job..several clicks...and find the step in the UI. This is not convenient and it's easy to miss if test upstream step is not running.

Are there any implications of this pull request? Anything a user must know?

Also relocates & refactors test-asciidoctor-upstream.sh to clean root path, and apply some bash patterns to avoid typical pitfalls.

Issue

If this PR fixes an open issue, please add a line of the form:

Fixes #Issue

Release notes

Please add a corresponding entry to the file CHANGELOG.adoc

@abelsromero
Copy link
Member Author

abelsromero commented Oct 5, 2021

Tested on my fork, this is how it looks https://github.com/abelsromero/asciidoctorj/actions/runs/1309264261

image

I must thank @spikymonkey for all his lessons on the topic 🥳

* Move scripts to folder to clean root path
* Apply 'set -euo pipefail' to validate input & abort on error
* 'test-asciidoctor-upstream.sh' refactor to reduce error prone practices
@abelsromero abelsromero force-pushed the display-upstream-test-in-actions branch from bbb2654 to 283b10f Compare October 5, 2021 21:09
@robertpanzer robertpanzer merged commit 7274e00 into asciidoctor:main Oct 6, 2021
@robertpanzer
Copy link
Member

Thanks! 🚀

@abelsromero abelsromero deleted the display-upstream-test-in-actions branch December 23, 2021 10:31
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.

None yet

2 participants