Skip to content

chore(deps): bump vite in templates #190

chore(deps): bump vite in templates

chore(deps): bump vite in templates #190

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
name: Format · Vet · Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.26"
cache: true
- name: Check formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "Unformatted files (run 'make fmt' locally):"
echo "$unformatted"
exit 1
fi
- name: Run go vet
run: go vet ./...
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.26"
cache: true
- name: Run tests with race detector
run: go test -race -coverprofile=coverage.out ./...
- name: Upload coverage
uses: codecov/codecov-action@v6
with:
files: ./coverage.out
fail_ci_if_error: false
build:
name: Build
runs-on: ubuntu-latest
needs: [validate, test]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.26"
cache: true
- name: Build all binaries
run: make build
- name: Verify dot binary
run: ./bin/dot version
- name: Upload binaries artifact
uses: actions/upload-artifact@v7
with:
name: dot-binaries-linux-amd64
path: bin/
retention-days: 7
test-flows:
name: End-to-end flow tests
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.26"
cache: true
- uses: pnpm/action-setup@v6
with:
version: latest
- uses: actions/setup-node@v6
with:
node-version: "22"
- name: Download binaries
uses: actions/download-artifact@v4
with:
name: dot-binaries-linux-amd64
path: bin/
- name: Make binaries executable
run: chmod +x bin/*
- name: Run end-to-end flow tests
run: ./bin/test-flow -dir tools/test-flow/testdata