diff --git a/.github/workflows/coveritup.yml b/.github/workflows/coveritup.yml index ab02237..4f71932 100644 --- a/.github/workflows/coveritup.yml +++ b/.github/workflows/coveritup.yml @@ -46,17 +46,6 @@ jobs: with: mysql-version: "8.0" - - name: Build Dist for Embed - working-directory: app/frontend - run: | - npm install - npm run build - - name: test - working-directory: app - run: | - go mod tidy - go test ./... -count=1 - - name: NPM Install working-directory: app/frontend run: | @@ -67,25 +56,26 @@ jobs: with: type: npm-install-time - # - name: NPM Build - # working-directory: app/frontend - # run: | - # START=$SECONDS - # npm run build - # echo SCORE=$(($SECONDS-START)) >> "$GITHUB_ENV" - # - uses: kevincobain2000/action-coveritup@v1 - # with: - # type: npm-build-time + - name: NPM Build + working-directory: app/frontend + run: | + START=$SECONDS + npm run build + echo SCORE=$(($SECONDS-START)) >> "$GITHUB_ENV" + - uses: kevincobain2000/action-coveritup@v1 + with: + type: npm-build-time - # - name: Go Build - # working-directory: app - # run: | - # START=$SECONDS - # go build -ldflags '-s -w' -o main main.go - # echo SCORE=$(($SECONDS-START)) >> "$GITHUB_ENV" - # - uses: kevincobain2000/action-coveritup@v1 - # with: - # type: go-build-time + - name: Go Build + working-directory: app + run: | + START=$SECONDS + go mod tidy + go build -ldflags '-s -w' -o main main.go + echo SCORE=$(($SECONDS-START)) >> "$GITHUB_ENV" + - uses: kevincobain2000/action-coveritup@v1 + with: + type: go-build-time # - name: Test # working-directory: app diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f793c9..e7aede0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,8 +30,9 @@ jobs: echo "You are running MIT License version" > dist/index.html - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 with: + workdir: app distribution: goreleaser version: latest args: release --clean --skip=validate diff --git a/.goreleaser.yaml b/app/.goreleaser.yaml similarity index 90% rename from .goreleaser.yaml rename to app/.goreleaser.yaml index f0b6bee..55d5c66 100644 --- a/.goreleaser.yaml +++ b/app/.goreleaser.yaml @@ -1,16 +1,16 @@ +before: + hooks: + - go mod tidy builds: - main: main.go - dir: app - hooks: - pre: go mod tidy env: - CGO_ENABLED=0 goos: - linux - darwin # - windows - # - freebsd + - freebsd goarch: - amd64 - arm64