Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Merge pull request #10 from stencila/feature/themeing-vscode #14

Merge pull request #10 from stencila/feature/themeing-vscode

Merge pull request #10 from stencila/feature/themeing-vscode #14

Workflow file for this run

# Workflow for running linting, tests etc
name: Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
NODE_VERSION: "20"
jobs:
main:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Test
run: npm test
if: runner.os != 'Linux'
- name: Test with xvfb
run: xvfb-run -a npm test
if: runner.os == 'Linux'