Skip to content

Synnax v0.38 RC

Synnax v0.38 RC #2929

Workflow file for this run

name: Test - Pluto
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.pluto.yaml
- alamos/ts/**
- client/ts/**
- configs/eslint/**
- configs/stylelint/**
- configs/ts/**
- configs/vite/**
- freighter/ts/**
- pluto/**
- x/media/**
- x/ts/**
test:
name: Test (${{ matrix.os }})
needs: changes
if: needs.changes.outputs.changed == 'true'
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
lint: true
exclude:
- os: ${{ github.ref != 'refs/heads/main' && 'macos-latest' }}
- os: ${{ github.ref != 'refs/heads/main' && 'windows-latest' }}
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
- name: Install Dependencies
run: pnpm install
- name: Lint
if: matrix.lint
run: pnpm lint:pluto
- name: Build
run: pnpm build:pluto
- name: Test
run: pnpm test:pluto