-
-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (39 loc) · 1.05 KB
/
build.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
40
41
42
43
44
name: Build
on:
pull_request:
branches:
- main
env:
# See: https://github.com/actions/setup-node/#readme
NODE_VERSION: '18.17'
jobs:
build:
name: Build (${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- name: Install dependencies
run: yarn
# Fails if the generated schema is not under version control
- name: Check schema
run: yarn generate && git status -s && git diff --exit-code
# Linux tests need a DISPLAY
- name: Test
if: runner.os == 'Linux'
run: xvfb-run yarn test-all
- name: Test
if: runner.os != 'Linux'
run: yarn test-all
- name: Package
run: yarn package