Skip to content

Commit

Permalink
Add build steps to workflow (#665)
Browse files Browse the repository at this point in the history
* Add build steps to workflow

Signed-off-by: Matt Provost <provomat@amazon.com>

* Add path filter

Signed-off-by: Matt Provost <provomat@amazon.com>

* Remove path filter

Signed-off-by: Matt Provost <provomat@amazon.com>

* Update yarn version for build CI

Signed-off-by: Matt Provost <provomat@amazon.com>

* Remove Windows from build CI

Signed-off-by: Matt Provost <provomat@amazon.com>

* Revert yarn version and add changlog entry

Signed-off-by: Matt Provost <provomat@amazon.com>

* Remove workflow matrix

Signed-off-by: Matt Provost <provomat@amazon.com>

* Add artifact upload steps

Signed-off-by: Matt Provost <provomat@amazon.com>

* Set workflow to upload artifacts as package

Signed-off-by: Matt Provost <provomat@amazon.com>

---------

Signed-off-by: Matt Provost <provomat@amazon.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
  • Loading branch information
BSFishy and joshuarrrr authored Aug 14, 2023
1 parent fe979c3 commit 62d5c8c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
45 changes: 43 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ on:
- '**/*.md'

jobs:
build-lint-test:
lint-test:
runs-on: ${{ matrix.os }}
name: Build and Verify
name: Lint and Test on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
Expand All @@ -39,3 +39,44 @@ jobs:

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

build:
runs-on: ubuntu-latest
name: Build on ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g yarn@1.22.10
yarn install --frozen-lockfile
- name: Build
run: yarn build

- name: Package artifacts
run: yarn pack --filename oui.tgz

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: oui.tgz

- name: Build Docs
run: yarn build-docs

- name: Upload doc artifacts
uses: actions/upload-artifact@v3
with:
name: docs
path: docs/
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- Add release workflows ([#134](/~https://github.com/opensearch-project/oui/pull/133))
- Change PR template and add changelog workflow ([#642](/~https://github.com/opensearch-project/oui/pull/642))
- Upgrade the backport workflow ([#862](/~https://github.com/opensearch-project/oui/pull/862))
- Add build steps to CI workflow ([#665](/~https://github.com/opensearch-project/oui/pull/665))

### 📝 Documentation

Expand Down

0 comments on commit 62d5c8c

Please sign in to comment.