From 772855d16212ec5cdfd050f261ae3b4300bb6227 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 14 Aug 2023 22:59:21 +0000 Subject: [PATCH] Add build steps to workflow (#665) * Add build steps to workflow Signed-off-by: Matt Provost * Add path filter Signed-off-by: Matt Provost * Remove path filter Signed-off-by: Matt Provost * Update yarn version for build CI Signed-off-by: Matt Provost * Remove Windows from build CI Signed-off-by: Matt Provost * Revert yarn version and add changlog entry Signed-off-by: Matt Provost * Remove workflow matrix Signed-off-by: Matt Provost * Add artifact upload steps Signed-off-by: Matt Provost * Set workflow to upload artifacts as package Signed-off-by: Matt Provost --------- Signed-off-by: Matt Provost Co-authored-by: Josh Romero (cherry picked from commit 62d5c8c8df0cf0a94510ad2e0f48aa83691219c4) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md --- .github/workflows/build_and_test.yml | 45 ++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 60c4efbe5a..8abff5ecd0 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -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] @@ -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/