-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (57 loc) · 2 KB
/
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
# https://help.github.com/en/actions
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
# https://github.com/actions
# https://github.com/micro-os-plus/hello-world-qemu-template-xpack/actions/workflows/ci.yml
name: CI on Push
on:
push:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore
paths-ignore:
- '.vscode/**'
- 'LICENSE'
- '**.md'
- '.clang-format'
- '.gitignore'
- '.npmignore'
- '.github/workflows/test-all.yml'
- '.github/FUNDING.yml'
- 'tests/scripts/**'
- 'README.md'
- 'README-MAINTAINER.md'
- 'README-DEVELOPER.md'
# This should disable running the workflow on tags, according to the
# on.<push|pull_request>.<branches|tags> GitHub Actions docs.
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushbranchestagsbranches-ignoretags-ignore
branches:
- '*'
jobs:
ci-test:
name: 'CI hello-world-template tests'
runs-on: ${{ matrix.os }}
strategy:
matrix:
# 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 ]
os: [ ubuntu-24.04, macos-13, windows-2022 ]
node-version: [ 18, 20, 22 ]
steps:
- name: Checkout
# https://github.com/actions/checkout
uses: actions/checkout@v4
with:
fetch-depth: 3
- 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 }}
- name: Show environment
run: |
uname -a
node --version
npm --version
env
- name: Satisfy project dependencies
run: npm install
- name: Run test-ci
run: npm run test-ci