-
-
Notifications
You must be signed in to change notification settings - Fork 39
39 lines (37 loc) · 994 Bytes
/
ci.yml
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
name: CI
on:
pull_request:
branches: [ main, develop ]
push:
branches:
- main
workflow_dispatch:
jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest, macOS-latest, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.100'
- uses: actions/setup-node@v3
with:
node-version: '20'
- uses: pnpm/action-setup@v2
with:
version: 9
- name: Install Python (Windows)
if: matrix.platform == 'windows-latest'
uses: actions/setup-python@v4
with:
python-version: '3.12'
- run: python --version
- name: Test (Unix)
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macOS-latest'
run: ./build.sh test
- name: Test (Windows)
if: matrix.platform == 'windows-latest'
run: .\build.bat test