chore(deps): update dependency baseline-browser-mapping to ^2.11.12 #5759
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: | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| paths-ignore: | |
| - '**.md' | |
| - '.gitignore' | |
| - 'LICENSE' | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - '.github/PULL_REQUEST_TEMPLATE.md' | |
| - '.github/labeler.yml' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NODE_VERSION: '24' | |
| GO_VERSION: '1.25.x' | |
| jobs: | |
| changes: | |
| name: Detect Changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| formulus: ${{ steps.filter.outputs.formulus }} | |
| formulus-formplayer: ${{ steps.filter.outputs.formulus-formplayer }} | |
| synkronus: ${{ steps.filter.outputs.synkronus }} | |
| synkronus-cli: ${{ steps.filter.outputs.synkronus-cli }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Detect changed components | |
| uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2 | |
| id: filter | |
| with: | |
| filters: | | |
| formulus: | |
| - 'formulus/**' | |
| formulus-formplayer: | |
| - 'formulus-formplayer/**' | |
| synkronus: | |
| - 'synkronus/**' | |
| - 'Dockerfile' | |
| synkronus-cli: | |
| - 'synkronus-cli/**' | |
| formulus: | |
| name: Formulus (React Native) | |
| runs-on: ubuntu-latest | |
| needs: changes | |
| if: ${{ needs.changes.outputs.formulus == 'true' || github.event_name == 'workflow_dispatch' }} | |
| defaults: | |
| run: | |
| working-directory: ./formulus | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 | |
| with: | |
| version: 10.33.2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: pnpm | |
| cache-dependency-path: formulus/pnpm-lock.yaml | |
| - name: Install and build @ode/tokens | |
| working-directory: packages/tokens | |
| run: | | |
| pnpm install --frozen-lockfile | |
| pnpm run build | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run linter | |
| run: pnpm run lint | |
| - name: Run tests | |
| # Do not use `pnpm test -- --ci`: pnpm forwards args after `--` with an extra | |
| # `--` to Jest, which then treats `--ci` as a test path pattern (0 matches). | |
| run: pnpm run test --ci --coverage --watchAll=false | |
| formulus-formplayer: | |
| name: Formulus Formplayer (React Web) | |
| runs-on: ubuntu-latest | |
| needs: changes | |
| if: ${{ needs.changes.outputs.formulus-formplayer == 'true' || github.event_name == 'workflow_dispatch' }} | |
| defaults: | |
| run: | |
| working-directory: ./formulus-formplayer | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 | |
| with: | |
| version: 10.33.2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: pnpm | |
| cache-dependency-path: formulus-formplayer/pnpm-lock.yaml | |
| - name: Install and build @ode/tokens | |
| working-directory: packages/tokens | |
| run: | | |
| pnpm install --frozen-lockfile | |
| pnpm run build | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run linter | |
| run: pnpm run lint | |
| - name: Run Prettier check | |
| run: pnpm run format:check | |
| - name: Run tests | |
| # Vitest: `run` subcommand = single CI pass (Jest's --watchAll=false does not apply). | |
| run: pnpm run test run | |
| continue-on-error: true | |
| - name: Build | |
| run: pnpm run build | |
| synkronus: | |
| name: Synkronus (Go Backend) | |
| runs-on: ubuntu-latest | |
| needs: changes | |
| if: ${{ needs.changes.outputs.synkronus == 'true' || github.event_name == 'workflow_dispatch' }} | |
| defaults: | |
| run: | |
| working-directory: ./synkronus | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| cache-dependency-path: synkronus/go.sum | |
| - name: Verify dependencies | |
| run: go mod verify | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run gofmt (warning) | |
| run: | | |
| UNFORMATTED_FILES=$(git ls-files '*.go' | xargs gofmt -s -l) | |
| if [ -n "$UNFORMATTED_FILES" ]; then | |
| echo "⚠️ Code is not formatted." | |
| echo "$UNFORMATTED_FILES" | |
| echo "$UNFORMATTED_FILES" | xargs gofmt -s -d | |
| else | |
| echo "✅ All Go files are formatted." | |
| fi | |
| - name: Run golangci-lint (if available) | |
| run: | | |
| if command -v golangci-lint &> /dev/null; then | |
| golangci-lint run | |
| else | |
| echo "golangci-lint not installed, skipping..." | |
| fi | |
| continue-on-error: true | |
| - name: Run tests | |
| run: go test -v -race -coverprofile=coverage.out ./... | |
| - name: Build | |
| run: go build -v ./cmd/synkronus | |
| synkronus-cli: | |
| name: Synkronus CLI (Go CLI) | |
| runs-on: ubuntu-latest | |
| needs: changes | |
| if: ${{ needs.changes.outputs.synkronus-cli == 'true' || github.event_name == 'workflow_dispatch' }} | |
| defaults: | |
| run: | |
| working-directory: ./synkronus-cli | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| cache-dependency-path: synkronus-cli/go.sum | |
| - name: Verify dependencies | |
| run: go mod verify | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run gofmt (warning) | |
| run: | | |
| UNFORMATTED_FILES=$(git ls-files '*.go' | xargs gofmt -s -l) | |
| if [ -n "$UNFORMATTED_FILES" ]; then | |
| echo "⚠️ Code is not formatted." | |
| echo "$UNFORMATTED_FILES" | |
| echo "$UNFORMATTED_FILES" | xargs gofmt -s -d | |
| else | |
| echo "✅ All Go files are formatted." | |
| fi | |
| - name: Run tests | |
| run: go test -v -race -coverprofile=coverage.out ./... | |
| - name: Build | |
| run: go build -v ./cmd/synkronus | |
| ci-summary: | |
| name: CI Summary | |
| runs-on: ubuntu-latest | |
| needs: [formulus, formulus-formplayer, synkronus, synkronus-cli] | |
| if: always() | |
| steps: | |
| - name: Check job results | |
| run: | | |
| echo "## CI Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "| Component | Status |" >> $GITHUB_STEP_SUMMARY | |
| echo "|-----------|--------|" >> $GITHUB_STEP_SUMMARY | |
| echo "| Formulus | ${{ needs.formulus.result }} |" >> $GITHUB_STEP_SUMMARY | |
| echo "| Formulus Formplayer | ${{ needs.formulus-formplayer.result }} |" >> $GITHUB_STEP_SUMMARY | |
| echo "| Synkronus | ${{ needs.synkronus.result }} |" >> $GITHUB_STEP_SUMMARY | |
| echo "| Synkronus CLI | ${{ needs.synkronus-cli.result }} |" >> $GITHUB_STEP_SUMMARY | |
| if [ "${{ needs.formulus.result }}" == "failure" ]; then exit 1; fi | |
| if [ "${{ needs.formulus-formplayer.result }}" == "failure" ]; then exit 1; fi | |
| if [ "${{ needs.synkronus.result }}" == "failure" ]; then exit 1; fi | |
| if [ "${{ needs.synkronus-cli.result }}" == "failure" ]; then exit 1; fi | |
| echo "✅ All CI checks passed!" |