-
Notifications
You must be signed in to change notification settings - Fork 13
81 lines (71 loc) · 1.75 KB
/
test.console.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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