Skip to content

build(deps): bump the npm-deps group across 1 directory with 30 updates #188

build(deps): bump the npm-deps group across 1 directory with 30 updates

build(deps): bump the npm-deps group across 1 directory with 30 updates #188

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
go-test:
name: Go Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Create frontend dist placeholder
run: mkdir -p web/gocronx-admin/dist && touch web/gocronx-admin/dist/.gitkeep
- name: Format check
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "::error::Unformatted files:" && echo "$unformatted" && exit 1
fi
- name: Vet
run: go vet ./...
- name: Lint
uses: golangci/golangci-lint-action@v7
with:
version: v2.12.2
- name: Test
run: go test -race -coverprofile=coverage.out ./...
- name: Upload coverage
if: github.event_name == 'push'
uses: actions/upload-artifact@v7
with:
name: coverage
path: coverage.out
frontend-build:
name: Frontend Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# pnpm version comes from the "packageManager" field in package.json
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
cache-dependency-path: web/gocronx-admin/pnpm-lock.yaml
- name: Install & Build
working-directory: web/gocronx-admin
run: |
pnpm install --frozen-lockfile
# build-only (vite) first: it generates the auto-import type
# declarations (src/types/import/*.d.ts, gitignored) that vue-tsc
# needs. Then type-check against the generated declarations.
pnpm build-only
pnpm exec vue-tsc --noEmit
- name: Lint
working-directory: web/gocronx-admin
run: pnpm lint
docker-build:
name: Docker Build
runs-on: ubuntu-latest
needs: [go-test, frontend-build]
steps:
- uses: actions/checkout@v6
- name: Build image
run: docker build -f Dockerfile.gocron -t gocron:ci .