Skip to content

Consolidate all "build" workflows #1

Consolidate all "build" workflows

Consolidate all "build" workflows #1

Workflow file for this run

name: Frontend CI

Check failure on line 1 in .github/workflows/frontend-ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/frontend-ci.yaml

Invalid workflow file

(Line: 24, Col: 9): Unrecognized named-value: 'matrix'. Located at position 59 within expression: github.event.inputs.os == '' || github.event.inputs.os == matrix.os
on:
push:
branches: [main, develop]
pull_request:
workflow_dispatch:
inputs:
os:
description: 'OS to build on. If empty, builds on all supported OSes.'
required: false
default: ''
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04-arm, macos-13, macos-14, macos-15, macos-latest]
if: ${{ github.event.inputs.os == '' || github.event.inputs.os == matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v5
- name: Frontend build
uses: ./.github/actions/frontend-build
with:
test-build-commands: 'true'
lint-and-test:
runs-on: ubuntu-24.04
steps:
- name: Git checkout
uses: actions/checkout@v5
- name: Frontend build and test
uses: ./.github/actions/frontend-build
with:
run-prettier-check: 'true'
run-tests: 'true'
test-build-commands: 'false'