Skip to content

Expand MIME type map in web server to broaden asset type support with fallback (fonts, source maps, etc) #666

Expand MIME type map in web server to broaden asset type support with fallback (fonts, source maps, etc)

Expand MIME type map in web server to broaden asset type support with fallback (fonts, source maps, etc) #666

Workflow file for this run

name: Test
on:
push:
branches:
- master
paths-ignore:
- .github/**
- packages/examples/**
- packages/nuejs.org/**
pull_request:
paths-ignore:
- .github/**
- packages/examples/**
- packages/nuejs.org/**
workflow_dispatch:
jobs:
test:
if: ${{ github.repository_owner == 'nuejs' || github.event_name == 'workflow_dispatch' }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
tool: ['bun', 'node+jest']
exclude:
- { os: 'ubuntu-latest', tool: 'node+jest' }
- { os: 'macos-latest', tool: 'node+jest' }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# Testing `bun`
- uses: oven-sh/setup-bun@v2
if: ${{ matrix.tool == 'bun' }}
- name: Install and test with Bun
run: |
bun -v
bun install
bun test --coverage
if: ${{ matrix.tool == 'bun' }}
# Testing `node+jest`
- uses: actions/setup-node@v4
with:
node-version: '>= 20.8'
if: ${{ matrix.tool == 'node+jest' }}
- name: Install and test with Node
run: |
node -v && npm -v
npm install --no-save --legacy-peer-deps "jest@>=30.0.0-alpha.4" jest-extended
npm test -- --coverage
if: ${{ matrix.tool == 'node+jest' }}