-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (32 loc) · 906 Bytes
/
tests.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
name: tests
on: push
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build extension
run: yarn build
- name: Install PlaydateSDK (macOS)
run: ./scripts/installSDKMacOS.sh
if: runner.os == 'macOS'
- name: Install PlaydateSDK (Linux)
run: ./scripts/installSDKLinux.sh
if: runner.os == 'Linux'
- name: Run tests (Linux)
run: xvfb-run -a yarn test:ci
if: runner.os == 'Linux'
- name: Run tests
run: yarn test:ci
if: runner.os != 'Linux'