Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(flags): implement GitOps feature flags with build-time tree shaking #85

feat(flags): implement GitOps feature flags with build-time tree shaking

feat(flags): implement GitOps feature flags with build-time tree shaking #85

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint:check
- name: Run OxLint
run: npm run oxlint:check
- name: Check formatting
run: npm run format:check
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test
- name: Run integration tests
run: npm run test:integration
env:
VITE_FEATURE_FLAGS_API_URL: http://localhost:8787/api/flags
VITE_CONTACT_FORM_API_URL: http://localhost:8788/api/contact
VITE_TURNSTILE_SITE_KEY: 1x00000000000000000000AA
build:
name: Build
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
retention-days: 7