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] Master/PR/Release workflows #181

Merged
merged 5 commits into from
Oct 14, 2020
Merged

Conversation

jimschubert
Copy link
Member

Relies on #172 before merging this.

This breaks master build from pull request builds, which will have different use cases.

Creates a release workflow which can be triggered manually from the actions tab in GitHub. This will tag/release automatically, and rollback if necessary. I haven't tested it, but it should work as-is.

- name: Run tests
run: ./mvnw -V -B -ntp -ff verify
run: ./mvnw -V -B -ntp -ff clean verify
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're running from scratch every time the workflow is being executed, the clean phase can be skipped.

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'm not familiar enough with the project to comment on this. However, it's usually best practice to ensure outputs are cleaned through the build tool before running a build in case there are any stale build outputs inadvertently committed to source.

restore-keys: |
${{ runner.os }}-maven-
- name: Run tests
run: ./mvnw -V -B -ntp -ff clean verify
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're running from scratch every time the workflow is being executed, the clean phase can be skipped.

@joschi joschi requested review from jmini and quen2404 October 13, 2020 06:28
Copy link
Contributor

@joschi joschi left a comment

Choose a reason for hiding this comment

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

LGTM.

@joschi joschi linked an issue Oct 13, 2020 that may be closed by this pull request
2 tasks
@joschi joschi added this to the Release 2.0.0 milestone Oct 13, 2020
@jimschubert jimschubert merged commit 132478a into master Oct 14, 2020
@jimschubert jimschubert deleted the ci-release-management branch October 14, 2020 01:07
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 openapi-diff artifacts to OpenAPITools (Maven & Docker)
2 participants