Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Test

Test #97

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
schedule:
- cron: '0 22 * * 3'
workflow_call:
permissions:
contents: read
jobs:
test:
name: Test
env:
WINE_BINARY: 'wine'
strategy:
matrix:
node-version:
- '22.12'
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: "${{ matrix.os }}"
steps:
# rc-edit.exe does not support arm64
- name: Install Rosetta
if: ${{ matrix.os == 'macos-latest' }}
run: /usr/sbin/softwareupdate --install-rosetta --agree-to-license
- name: Homebrew Cache
if: ${{ matrix.os == 'macos-latest' }}
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: /usr/local/Homebrew
key: v1-brew-cache-${{ matrix.os }}
- name: Install OS Dependencies (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install --no-install-recommends -y wine64 wine32 wine
- name: Install OS Dependencies (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install --cask xquartz
brew install --cask --no-quarantine wine-stable
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: "${{ matrix.node-version }}"
cache: 'yarn'
- name: Install
run: yarn install --immutable
- name: Test
run: yarn test