Skip to content

re-generate commons #34

re-generate commons

re-generate commons #34

Workflow file for this run

# -----------------------------------------------------------------------------
# DO NOT EDIT!
# Automatically generated from npm-packages-helper/templates/*.
#
# This file is part of the xPack project (http://xpack.github.io).
# Copyright (c) 2021 Liviu Ionescu. All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose is hereby granted, under the terms of the MIT license.
#
# If a copy of the license was not distributed with this file, it can
# be obtained from https://opensource.org/licenses/mit/.
#
# -----------------------------------------------------------------------------
# https://help.github.com/en/actions
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
# https://github.com/actions
# https://github.com/actions/checkout
# https://github.com/actions/setup-node
name: CI on Push
on:
push:
branches:
- 'master'
- 'development'
tags-ignore:
- '**'
paths-ignore:
- 'docs/**'
- 'website/**'
- 'LICENSE'
- '**.md'
- '.gitignore'
- '.npmignore'
- '.vscode/**'
- '.github/FUNDING.yml'
- '.github/workflows/publish-github-pages*.yml'
- '.github/workflows/trigger-publish-github-pages*.yml'
- 'typedoc.json'
jobs:
npm-test:
strategy:
matrix:
# https://github.com/actions/setup-node
node-version: [18, 20, 22]
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners
os: [ubuntu-24.04, macos-13, macos-14, windows-2022]
runs-on: ${{matrix.os}}
steps:
- name: Checkout
# https://github.com/actions/checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Node.js ${{matrix.node-version}} on ${{matrix.os}}
# https://github.com/actions/setup-node
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
cache: 'npm'
- name: Show node & npm versions, environment
run: |
node --version
npm --version
env | sort
- name: Install dependencies
run: npm ci
- name: Run test
run: npm run test-ci
env:
CI: true