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 build steps to workflow #665

Merged
merged 11 commits into from
Aug 14, 2023
Merged

Conversation

BSFishy
Copy link
Contributor

@BSFishy BSFishy commented Apr 5, 2023

Description

Adds workflow steps to run yarn build and yarn build-docs. These are good as verification steps and also generate oui.d.ts, which will be very useful for #648. They are scheduled to run after both yarn test-unit and yarn lint run because they are pretty hefty commands and should only be run if absolutely necessary.

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • All tests pass
    • yarn lint
    • yarn test-unit
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Matt Provost <[email protected]>
Signed-off-by: Matt Provost <[email protected]>
Comment on lines 72 to 79
src:
- 'src/**'
- package.json
- yarn.lock
docs:
- 'src-docs/**'
- package.json
- yarn.lock
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To reviewers: should other related build files be added here? Ex. postcss.config.js, tsconfig.json, ...

Copy link
Member

Choose a reason for hiding this comment

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

yeah, I think adding those is a good idea. It's hard to know whether an allowlist or a denylist is easier in this case.

@BSFishy BSFishy marked this pull request as draft April 13, 2023 17:02
@BSFishy
Copy link
Contributor Author

BSFishy commented Apr 13, 2023

Converting to draft to rethink some of the filtering stuff and also get build working on Windows

Signed-off-by: Matt Provost <[email protected]>
@BSFishy
Copy link
Contributor Author

BSFishy commented May 23, 2023

I removed the path filter. I think at this point, adding a path filter would require more thought and effort than it's worth. I'd just like to get this out, and we can make a follow-up issue to figure out path filters.

@@ -39,3 +39,29 @@ jobs:

- name: Run unit tests
run: yarn test-unit

build:
runs-on: ubuntu-latest
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BSFishy BSFishy merged commit 62d5c8c into opensearch-project:main Aug 14, 2023
6 checks passed
@BSFishy BSFishy deleted the add_build_step branch August 14, 2023 22:58
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 14, 2023
* Add build steps to workflow

Signed-off-by: Matt Provost <[email protected]>

* Add path filter

Signed-off-by: Matt Provost <[email protected]>

* Remove path filter

Signed-off-by: Matt Provost <[email protected]>

* Update yarn version for build CI

Signed-off-by: Matt Provost <[email protected]>

* Remove Windows from build CI

Signed-off-by: Matt Provost <[email protected]>

* Revert yarn version and add changlog entry

Signed-off-by: Matt Provost <[email protected]>

* Remove workflow matrix

Signed-off-by: Matt Provost <[email protected]>

* Add artifact upload steps

Signed-off-by: Matt Provost <[email protected]>

* Set workflow to upload artifacts as package

Signed-off-by: Matt Provost <[email protected]>

---------

Signed-off-by: Matt Provost <[email protected]>
Co-authored-by: Josh Romero <[email protected]>
(cherry picked from commit 62d5c8c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
BSFishy pushed a commit that referenced this pull request Aug 15, 2023
* Add build steps to workflow

Signed-off-by: Matt Provost <[email protected]>

* Add path filter

Signed-off-by: Matt Provost <[email protected]>

* Remove path filter

Signed-off-by: Matt Provost <[email protected]>

* Update yarn version for build CI

Signed-off-by: Matt Provost <[email protected]>

* Remove Windows from build CI

Signed-off-by: Matt Provost <[email protected]>

* Revert yarn version and add changlog entry

Signed-off-by: Matt Provost <[email protected]>

* Remove workflow matrix

Signed-off-by: Matt Provost <[email protected]>

* Add artifact upload steps

Signed-off-by: Matt Provost <[email protected]>

* Set workflow to upload artifacts as package

Signed-off-by: Matt Provost <[email protected]>

---------

Signed-off-by: Matt Provost <[email protected]>
Co-authored-by: Josh Romero <[email protected]>
(cherry picked from commit 62d5c8c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants