Skip to content

SY-1375 Run CI on Windows and macOS #1104

SY-1375 Run CI on Windows and macOS

SY-1375 Run CI on Windows and macOS #1104

Workflow file for this run

name: Test - Console
on:
push:
branches:
- main
- rc
pull_request:
branches:
- main
- rc
workflow_dispatch:
jobs:
changes:
name: Changes
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.filter.outputs.changed }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Diff Changes
uses: dorny/paths-filter@v3
id: filter
with:
base: ${{ github.ref }}
filters: |
changed:
- .github/workflows/test.console.yaml
- alamos/ts/**
- client/ts/**
- configs/eslint/**
- configs/stylelint/**
- configs/ts/**
- configs/vite/**
- console/**
- drift/**
- pluto/**
- x/media/**
- x/ts/**
test:
name: Test (${{ matrix.os }})
needs: changes
if: needs.changes.outputs.changed == 'true'
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
lint: true
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm build:console-vite
- name: Test
run: pnpm test:console
- name: Lint
if: matrix.lint
run: pnpm lint:console