Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit 9d729fe

Browse files
authored
Merge pull request #19 from stylelint/add-ci
Add CI
2 parents fa8d09b + cdb4b90 commit 9d729fe

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "dependabot/**"
8+
pull_request:
9+
branches:
10+
- "**"
11+
12+
env:
13+
CI: true
14+
15+
jobs:
16+
test:
17+
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }}
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
node: [10, 12]
25+
os: [ubuntu-latest, windows-latest, macos-latest]
26+
27+
steps:
28+
- name: Set git to use LF
29+
run: |
30+
git config --global core.autocrlf false
31+
git config --global core.eol lf
32+
33+
- uses: actions/checkout@v2
34+
35+
- name: Use Node.js ${{ matrix.node }}
36+
uses: actions/setup-node@v1
37+
with:
38+
node-version: ${{ matrix.node }}
39+
40+
- name: Install latest npm
41+
run: npm install --global npm@latest
42+
43+
- name: Install dependencies
44+
run: npm ci
45+
46+
- name: Test
47+
run: npm test

0 commit comments

Comments
 (0)