Browse Source

cicd: Need to build webui-dist before integration tests

jamesread 2 years ago
parent
commit
f348de6a03
3 changed files with 8 additions and 2 deletions
  1. 3 0
      .github/workflows/build-snapshot.yml
  2. 4 1
      .github/workflows/build-tag.yml
  3. 1 1
      .goreleaser.yml

+ 3 - 0
.github/workflows/build-snapshot.yml

@@ -39,6 +39,9 @@ jobs:
       - name: make daemon
       - name: make daemon
         run: make -w daemon-compile-x64-lin
         run: make -w daemon-compile-x64-lin
 
 
+      - name: make webui
+        run: make -w webui-dist
+
       - name: unit tests
       - name: unit tests
         run: make -w daemon-unittests
         run: make -w daemon-unittests
 
 

+ 4 - 1
.github/workflows/build-tag.yml

@@ -48,7 +48,10 @@ jobs:
           password: ${{ secrets.CONTAINER_TOKEN }}
           password: ${{ secrets.CONTAINER_TOKEN }}
 
 
       - name: grpc
       - name: grpc
-        run: make grpc
+        run: make -w grpc
+
+      - name: make webui
+        run: make -w webui-dist
 
 
       - name: goreleaser
       - name: goreleaser
         uses: goreleaser/goreleaser-action@v4.2.0
         uses: goreleaser/goreleaser-action@v4.2.0

+ 1 - 1
.goreleaser.yml

@@ -2,7 +2,7 @@ project_name: OliveTin
 before:
 before:
   hooks:
   hooks:
     - go mod download
     - go mod download
-    - make webui-dist
+
 builds:
 builds:
   - env:
   - env:
       - CGO_ENABLED=0
       - CGO_ENABLED=0