docs(readme): upgrade demo video to native inline player (#106) #223
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Build, lint & test | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:17 | |
| env: | |
| POSTGRES_DB: archipulse_test | |
| POSTGRES_USER: archipulse | |
| POSTGRES_PASSWORD: archipulse | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| env: | |
| DATABASE_URL: postgres://archipulse:archipulse@localhost:5432/archipulse_test?sslmode=disable | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: cmd/archipulse/ui/package-lock.json | |
| - name: Install UI dependencies | |
| run: npm ci --prefix cmd/archipulse/ui | |
| - name: Build UI | |
| run: npm run build --prefix cmd/archipulse/ui | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Verify dependencies | |
| run: go mod verify | |
| - name: Build | |
| run: go build -o archipulse ./cmd/archipulse | |
| - name: Format check | |
| run: | | |
| if [ -n "$(gofmt -l .)" ]; then | |
| echo "The following files are not formatted:" | |
| gofmt -l . | |
| exit 1 | |
| fi | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| version: v2.11.4 | |
| - name: Run migrations | |
| run: go run ./cmd/archipulse migrate | |
| - name: Unit tests | |
| run: go test ./internal/... -race -count=1 | |
| - name: Integration tests | |
| run: go test ./tests/... -race -count=1 | |
| - name: Test coverage | |
| run: | | |
| go test -coverprofile=coverage.out ./internal/... ./tests/... | |
| go tool cover -func=coverage.out |