Skip to content

Merge pull request #310 from preactjs/xml-namespaces #351

Merge pull request #310 from preactjs/xml-namespaces

Merge pull request #310 from preactjs/xml-namespaces #351

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
branches:
- '**'
push:
branches:
- main
jobs:
build_test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
# This uses the same name as the build-action so we can share the caches.
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- name: test
# Not using `npm test` since it rebuilds source which npm ci has already done
run: |
npm run build
npm run test