Skip to content

Commit

Permalink
Add check to download deps only once (#450)
Browse files Browse the repository at this point in the history
* Add check to download deps only once

* Run make clean in build step
  • Loading branch information
jpellizzari committed Jul 12, 2021
1 parent 8815bcc commit 8073c57
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ jobs:
go-version: 1.16.x
- name: Checkout code
uses: actions/checkout@v2
- name: Install UI Deps
run: npm ci
- name: Build UI Assets
run: make cmd/ui/dist/index.html
- name: Clean
run: make clean
- name: build
run: make
run: make wego
- name: Store wego binaries
uses: actions/upload-artifact@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ node_modules
coverage
*.lcov
ginkgo.report
.deps
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,19 @@ clean:
rm -rf cmd/ui/dist
rm -rf coverage
rm -rf node_modules
rm .deps
# Run go fmt against code
fmt:
go fmt ./...
# Run go vet against code
vet:
go vet ./...

dependencies:
.deps:
$(CURRENT_DIR)/tools/download-deps.sh $(CURRENT_DIR)/tools/dependencies.toml
@touch .deps

dependencies: .deps

node_modules:
npm install
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8073c57

Please sign in to comment.