Skip to content

Commit

Permalink
chore: allow running go test without npm
Browse files Browse the repository at this point in the history
Signed-off-by: guillaume <[email protected]>
  • Loading branch information
gruyaume committed Sep 20, 2024
1 parent abf5184 commit 4cf7691
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 21 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/go-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ jobs:
with:
go-version-file: "go.mod"

- name: Download frontend files
uses: actions/download-artifact@v4
with:
name: frontend-static-files
path: ui/out
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.54
version: v1.54
8 changes: 1 addition & 7 deletions .github/workflows/go-unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: Download frontend files
uses: actions/download-artifact@v4
with:
name: frontend-static-files
path: ui/out

- name: Unit tests
run: go test -cover ./...

5 changes: 0 additions & 5 deletions .github/workflows/go-vet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,5 @@ jobs:
with:
go-version-file: "go.mod"

- name: Download frontend files
uses: actions/download-artifact@v4
with:
name: frontend-static-files
path: ui/out
- name: Go vet
run: go vet ./...
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ jobs:
frontend-build:
uses: ./.github/workflows/frontend-build.yaml
go-unit-test:
needs: [frontend-build]
uses: ./.github/workflows/go-unittest.yaml
go-vet:
needs: [frontend-build]
uses: ./.github/workflows/go-vet.yaml
go-lint:
needs: [frontend-build]
uses: ./.github/workflows/go-lint.yaml
go-build:
needs: [frontend-build]
Expand Down
Empty file added ui/out/.gitkeep
Empty file.

0 comments on commit 4cf7691

Please sign in to comment.