diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a739ac..c2b3f74 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,13 @@ jobs: go-version-file: go.mod cache: true + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + cache-dependency-path: web/package-lock.json + - name: Format check run: make fmt @@ -44,6 +51,16 @@ jobs: go-version-file: go.mod cache: true + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + cache-dependency-path: web/package-lock.json + + - name: Build web dashboard + run: make web-build + - name: Cross-platform build run: make cross-build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39e528d..da4262a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,16 @@ jobs: - name: Set GO_VERSION environment variable run: echo "GO_VERSION=$(go version | cut -d' ' -f3)" >> $GITHUB_ENV + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + cache-dependency-path: web/package-lock.json + + - name: Build web dashboard + run: make web-build + - name: Run tests run: make test