Skip to content

migrate from jest to node:test #58

migrate from jest to node:test

migrate from jest to node:test #58

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js CI
on: [push, pull_request]
jobs:
linux-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: sudo apt update
- run: sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev
- run: npm ci
- run: npm test ci
# windows-ci:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 20
# - run: Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile "mswebview2setup.exe"; Start-Process -Wait -FilePath "mswebview2setup.exe" -ArgumentList "/install /silent"
# - run: npm ci
# - run: npm test ci
macos-ci:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npm test ci