Upgrade release tools
Some checks failed
Build / Build (push) Failing after 5m14s
Build / Build UI (push) Failing after 1m45s
Build / Publish :latest (push) Has been skipped
Build / Publish :release (push) Has been skipped
Build / Release (push) Has been skipped

This commit is contained in:
andig 2021-02-21 11:20:50 +01:00
parent 3bb58e59e8
commit e47bb2bf8e
7 changed files with 17 additions and 8 deletions

View file

@ -9,6 +9,7 @@
Dockerfile
dist
node_modules
release
!entrypoint.sh
!evcc.dist.yaml
!package*.json

View file

@ -32,7 +32,7 @@ jobs:
- name: Install tools
run: make install
- name: Assets & UI
- name: Assets
run: make assets
- name: Porcelain
@ -46,7 +46,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.33
version: v1.37
- name: Test
run: make test
@ -70,9 +70,12 @@ jobs:
- name: Install tools
run: make install-ui
- name: Assets & UI
- name: Build
run: make ui
- name: Lint
run: make lint-ui
- name: Porcelain
run: |
test -z "$(git status --porcelain)" || (git status; git diff; false)
@ -160,7 +163,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.14
go-version: ^1.16
id: go
- name: Prepare Image

1
.gitignore vendored
View file

@ -14,3 +14,4 @@ flags/*
buildflags/*
linux-*.Dockerfile
node_modules
release

View file

@ -1,3 +1,4 @@
dist: release
release:
github:
owner: andig
@ -28,8 +29,6 @@ archives:
- builds:
- evcc
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
format: tar.gz
format_overrides:

View file

@ -13,6 +13,7 @@ RUN make install-ui
# build ui
COPY assets assets
COPY vue.config.js vue.config.js
COPY .eslintrc.js .eslintrc.js
RUN make clean ui

View file

@ -1,4 +1,4 @@
.PHONY: default all clean install install-ui ui assets lint test build test-release release
.PHONY: default all clean install install-ui ui assets lint lint-ui test build test-release release
.PHONY: docker publish-testing publish-latest publish-images
.PHONY: prepare-image image-rootfs image-update
@ -23,7 +23,7 @@ IMAGE_OPTIONS := -hostname evcc -http_port 8080 github.com/gokrazy/serial-busybo
default: build
all: clean install install-ui ui assets lint test build
all: clean install install-ui ui assets lint lint-ui test build
clean:
rm -rf dist/
@ -42,6 +42,8 @@ assets:
lint:
golangci-lint run
lint-ui:
npm run lint
test:
@ -79,6 +81,7 @@ publish-images:
prepare-image:
go get github.com/gokrazy/tools/cmd/gokr-packer@latest
go get github.com/gokrazy/rpi-eeprom@latest
mkdir -p flags/github.com/gokrazy/breakglass
echo "-forward=private-network" > flags/github.com/gokrazy/breakglass/flags.txt
mkdir -p buildflags/github.com/andig/evcc

View file

@ -13,6 +13,7 @@ RUN make install-ui
# build ui
COPY assets assets
COPY vue.config.js vue.config.js
COPY .eslintrc.js .eslintrc.js
RUN make clean ui