From 3817804abb2bbcbfb477ed2823d76614075a5ab2 Mon Sep 17 00:00:00 2001 From: Sebastien Jourdain Date: Thu, 9 Nov 2023 10:19:20 -0700 Subject: [PATCH] fix(client): ci now build the client --- .github/workflows/test_and_release.yml | 33 ++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_and_release.yml b/.github/workflows/test_and_release.yml index cf04897..2b0480d 100644 --- a/.github/workflows/test_and_release.yml +++ b/.github/workflows/test_and_release.yml @@ -69,8 +69,26 @@ jobs: - name: Upload Coverage to Codecov uses: codecov/codecov-action@v3 + test-npm-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set Up Node + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Build Vue2/3 Components + run: | + cd vue-components + npm ci + npm run build + release: - needs: [pre-commit, pytest] + needs: [pre-commit, pytest, test-npm-build] runs-on: ubuntu-latest if: github.event_name == 'push' @@ -80,11 +98,16 @@ jobs: with: fetch-depth: 0 - - name: Install Client + - name: Set Up Node + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Build Vue2/3 Components run: | - mkdir -p trame_markdown/module/serve - cd trame_markdown/module/serve - curl -L https://registry.npmjs.org/markdown-it-vue/-/markdown-it-vue-1.1.7.tgz | tar --strip-components=1 -xzv + cd vue-components + npm ci + npm run build - name: Python Semantic Release uses: relekang/python-semantic-release@v7.34.6