-
-
Notifications
You must be signed in to change notification settings - Fork 7
83 lines (71 loc) · 2.24 KB
/
test-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -----------------------------------------------------------------------------
# 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