1.4.3 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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-qemu-template tests' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners | |
os: [ ubuntu-22.04, macos-12, windows-2022 ] | |
node-version: [ 16, 18, 20 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 3 | |
- name: Setup Node.js ${{ matrix.node-version }} on ${{ matrix.os }} | |
uses: actions/setup-node@v3 | |
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 |