chore(ci): more updating CI to run more efficient

This commit is contained in:
Gabe Kangas
2025-10-07 13:11:52 -07:00
parent 728bd3e96d
commit a3915bd89d
6 changed files with 84 additions and 28 deletions
+10 -4
View File
@@ -1,9 +1,7 @@
# This workflow runs browser-based tests using Cypress
# Triggers:
# - Push/PR with web or browser test changes
# Skips:
# - Documentation-only changes in web/
# - Configuration-only changes
# - Push/PR with web, Go backend, or browser test changes
# Note: Browser tests require both frontend and backend
name: Browser Tests
@@ -11,11 +9,19 @@ on:
push:
paths:
- 'web/**'
- '**.go'
- 'go.mod'
- 'go.sum'
- 'test/automated/browser/**'
- '.github/workflows/browser-testing.yml'
pull_request:
paths:
- 'web/**'
- '**.go'
- 'go.mod'
- 'go.sum'
- 'test/automated/browser/**'
- '.github/workflows/browser-testing.yml'
jobs:
cypress-run:
+17 -4
View File
@@ -2,10 +2,9 @@
# This workflow publishes Storybook to Chromatic for visual regression testing
# Triggers:
# - Push/PR with changes to web/ directory
# - Push/PR with changes to web components, stories, or styles
# Skips:
# - Static files
# - next.config.js changes
# - Renovate bot PRs
# Features:
# - Uses onlyChanged for efficient testing
@@ -16,10 +15,24 @@ name: 'Chromatic'
on:
push:
paths:
- web/**
- 'web/components/**'
- 'web/stories/**'
- 'web/.storybook/**'
- 'web/**/*.{css,scss}'
- 'web/i18n/**'
- 'web/package.json'
- 'web/package-lock.json'
- '.github/workflows/chromatic.yml'
pull_request:
paths:
- web/**
- 'web/components/**'
- 'web/stories/**'
- 'web/.storybook/**'
- 'web/**/*.{css,scss}'
- 'web/i18n/**'
- 'web/package.json'
- 'web/package-lock.json'
- '.github/workflows/chromatic.yml'
# List of jobs
jobs:
+14 -4
View File
@@ -14,13 +14,23 @@ name: 'CodeQL'
on:
push:
branches: [develop]
paths-ignore:
- 'static/**'
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- 'web/**/*.{js,ts,tsx,jsx}'
- '.github/workflows/codeql-analysis.yml'
- '.github/codeql/**'
pull_request:
# The branches below must be a subset of the branches above
branches: [develop]
paths-ignore:
- 'static/**'
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- 'web/**/*.{js,ts,tsx,jsx}'
- '.github/workflows/codeql-analysis.yml'
- '.github/codeql/**'
jobs:
analyze:
+12 -4
View File
@@ -9,11 +9,19 @@
name: Lint
on:
push:
paths-ignore:
- 'web/**'
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.golangci.yml'
- '.github/workflows/go-lint.yml'
pull_request:
paths-ignore:
- 'web/**'
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.golangci.yml'
- '.github/workflows/go-lint.yml'
permissions:
contents: read
+13 -7
View File
@@ -1,8 +1,6 @@
# This workflow tests HLS video streaming functionality
# Triggers:
# - Push/PR with Go file changes
# Skips:
# - Web-only changes
# - Push/PR with Go file changes or HLS test changes
# Tests:
# - Local storage backend
# - S3 storage backend (when secrets available)
@@ -12,11 +10,19 @@ name: HLS tests
on:
push:
paths-ignore:
- 'web/**'
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- 'test/automated/hls/**'
- '.github/workflows/hls-tests.yml'
pull_request:
paths-ignore:
- 'web/**'
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- 'test/automated/hls/**'
- '.github/workflows/hls-tests.yml'
env:
S3_BUCKET: ${{ secrets.S3_BUCKET }}
@@ -1,8 +1,9 @@
# This workflow handles Javascript formatting, linting, testing, and building
# Triggers:
# - Push/PR with changes to web/ directory
# - Push/PR with changes to web/ directory source code
# Skips:
# - Markdown files
# - Static/generated files
# Jobs:
# 1. formatting: ESLint and Prettier formatting
# 2. unused-code: Knip checks for unused code and dependencies
@@ -14,13 +15,25 @@ name: Javascript
on:
push:
paths:
- web/**
- '!**.md'
- 'web/**/*.{js,ts,tsx,jsx,json,css,scss}'
- 'web/package.json'
- 'web/package-lock.json'
- 'web/.eslintrc.js'
- 'web/.prettierrc.js'
- 'web/tsconfig.json'
- 'web/next.config.js'
- '.github/workflows/javascript-format-test-build.yml'
pull_request:
paths:
- web/**
- '!**.md'
- 'web/**/*.{js,ts,tsx,jsx,json,css,scss}'
- 'web/package.json'
- 'web/package-lock.json'
- 'web/.eslintrc.js'
- 'web/.prettierrc.js'
- 'web/tsconfig.json'
- 'web/next.config.js'
- '.github/workflows/javascript-format-test-build.yml'
jobs:
formatting: