forked from conventional-changelog/standard-version
-
Notifications
You must be signed in to change notification settings - Fork 40
39 lines (39 loc) · 970 Bytes
/
ci.yaml
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
on:
push:
branches:
- master
pull_request:
types: [ assigned, opened, synchronize, reopened, labeled ]
name: ci
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [
18,
20,
lts/*
]
os: [
ubuntu-latest,
windows-latest
]
env:
OS: ${{ matrix.os }}
NODE_VERSION: ${{ matrix.node }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- run: git fetch --prune --unshallow
- run: git config --global user.name 'Actions'
- run: git config --global user.email '[email protected]'
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: node --version
- run: npm install --engine-strict
- run: npm test
- name: Codecov
uses: codecov/codecov-action@v5
with:
env_vars: OS, NODE_VERSION