Skip to content

Commit

Permalink
Add build steps to workflow (#665) (#963)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
1 parent 4717b15 commit 1f912a7
Showing 1 changed file with 43 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 [email protected]
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/

0 comments on commit 1f912a7

Please sign in to comment.