From fe208531b5853d9bbb5b6765ff77b62ec8e4da35 Mon Sep 17 00:00:00 2001 From: Sphericalkat Date: Sun, 28 May 2023 23:16:36 +0530 Subject: [PATCH] fix(test): set up node and build frontend before backend Signed-off-by: Sphericalkat --- .github/workflows/test.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98be42a..2fcbb2c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,11 +6,24 @@ jobs: name: Run tests runs-on: ubuntu-latest strategy: - matrix: - go-version: [ '1.18', '1.19', '1.20' ] + matrix: + go-version: ["1.18", "1.19", "1.20"] steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'pnpm' + cache-dependency-path: frontend/pnpm-lock.yaml + + - name: Build frontend + run: | + cd frontend + pnpm install --frozen-lockfile + pnpm run build + - name: Set up Go uses: actions/setup-go@v4 with: @@ -20,4 +33,4 @@ jobs: run: go build . - name: Test - run: go test ./... \ No newline at end of file + run: go test ./...