Merge pull request #73 from goosewobbler/sm/runtime-windows #196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
pull_request: | |
env: | |
TURBO_TELEMETRY_DISABLED: 1 | |
jobs: | |
build: | |
name: Build & Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
node-version: [20.x] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache pnpm modules | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-pnpm-modules | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}- | |
- uses: pnpm/action-setup@v4 | |
with: | |
run_install: false | |
- name: Set pnpm store path | |
run: | | |
pnpm config set store-dir ~/.pnpm-store --global | |
- name: Install Dependencies | |
run: | | |
pnpm install | |
shell: bash | |
- name: Run Tests | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
# Run tasks in serial on Ubuntu to avoid Xvfb issues | |
pnpm run ci-linux | |
else | |
pnpm run ci | |
fi | |
shell: bash | |
- name: 🐛 Show logs | |
if: failure() | |
run: | | |
pnpm run ci:e2e:logs | |
- name: 🐛 Debug Build | |
uses: stateful/vscode-server-action@v1.1.0 | |
if: failure() | |
with: | |
timeout: '180000' |