Skip to content

chore(deps): bump @testing-library/react from 13.4.0 to 16.3.0 in /frontend #16

chore(deps): bump @testing-library/react from 13.4.0 to 16.3.0 in /frontend

chore(deps): bump @testing-library/react from 13.4.0 to 16.3.0 in /frontend #16

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Cache Go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.out
flags: unittests
name: codecov-umbrella
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Build API
run: |
CGO_ENABLED=0 GOOS=linux go build -o bin/karpenter-optimizer-api ./cmd/api
- name: Build CLI
run: |
CGO_ENABLED=0 GOOS=linux go build -o bin/karpenter-optimizer ./cmd/cli
frontend:
name: Frontend Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
working-directory: ./frontend
run: npm ci
- name: Run linter
working-directory: ./frontend
run: npm run lint
- name: Run tests
working-directory: ./frontend
run: npm test -- --coverage --watchAll=false
- name: Build
working-directory: ./frontend
run: npm run build
helm-chart:
name: Helm Chart Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Helm
uses: helm/helm-action@v1.0.0
with:
version: '3.13.0'
- name: Run Helm Lint
run: |
helm lint charts/karpenter-optimizer
- name: Validate Chart Schema
run: |
helm lint charts/karpenter-optimizer --strict
- name: Validate Default Values
run: |
helm template karpenter-optimizer charts/karpenter-optimizer > /dev/null