From 81bc7c2ea727711d7ccc4f031b78f5d407ed6571 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Sun, 29 Sep 2024 12:49:58 -0700 Subject: [PATCH] chore: test build UI outside of release (#534) Signed-off-by: James Hillyerd --- .github/workflows/build-and-test.yml | 31 ++++++++++++++++++---------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index f58cc92..9af1db8 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -10,28 +10,23 @@ jobs: linux-go-build: runs-on: ubuntu-latest name: Linux Go ${{ matrix.go }} build - strategy: matrix: go: - '1.21' - steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup Go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} check-latest: true - - name: Build and test run: | go build ./... go test -race -coverprofile=profile.cov ./... - - name: Send coverage uses: shogo82148/actions-goveralls@v1 with: @@ -42,23 +37,18 @@ jobs: windows-go-build: runs-on: windows-latest name: Windows Go build - steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup Go uses: actions/setup-go@v5 with: go-version: '1.21' - - name: Build run: go build ./... - - name: Test run: go test -race -coverprofile="profile.cov" ./... - - name: Send coverage uses: shogo82148/actions-goveralls@v1 with: @@ -66,13 +56,32 @@ jobs: flag-name: Windows-Go parallel: true + ui-build: + runs-on: ubuntu-latest + name: UI Build + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + cache: 'yarn' + cache-dependency-path: ui/yarn.lock + + - name: Build frontend + run: | + yarn install --frozen-lockfile --non-interactive + yarn run build + working-directory: ./ui + coverage: needs: - linux-go-build - windows-go-build name: Test Coverage runs-on: ubuntu-latest - steps: - uses: shogo82148/actions-goveralls@v1 with: