.github/workflows/test-actions.yml
name: build-actions
on: [push]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [16.x, 18.x, 19.x]
env:
OS: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 1 # ! We only skip if the tippy top commit says so!
persist-credentials: false
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run lint-markdown
- run: npm test
- name: Upload coverage artifact
uses: actions/upload-artifact@v3
with:
name: coverage ${{ matrix.os }} ${{ matrix.node-version }}
path: coverage/clover.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage/clover.xml
flags: unittests
name: codecov-insteon-hub2
fail_ci_if_error: true
verbose: true