Skip to content

Commit 74b33f7

Browse files
authored
Simplify CI settings via reusable workflow (#251)
1 parent 2f7299e commit 74b33f7

File tree

1 file changed

+4
-48
lines changed

1 file changed

+4
-48
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,9 @@ on:
1111

1212
jobs:
1313
lint:
14-
name: Lint
15-
16-
runs-on: ubuntu-latest
17-
18-
steps:
19-
- uses: actions/checkout@v3
20-
21-
- name: Use Node.js LTS
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: 'lts/*'
25-
cache: npm
26-
27-
- name: Install latest npm
28-
run: npm install --global npm@latest
29-
30-
- name: Install dependencies
31-
run: npm ci
32-
33-
- name: Lint
34-
run: npm run lint
14+
uses: stylelint/.github/.github/workflows/lint.yml@main
3515

3616
test:
37-
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }}
38-
39-
runs-on: ${{ matrix.os }}
40-
41-
strategy:
42-
fail-fast: false
43-
matrix:
44-
node: [12, 14, 16, 18]
45-
os: [ubuntu-latest, windows-latest, macos-latest]
46-
47-
steps:
48-
- uses: actions/checkout@v3
49-
50-
- name: Use Node.js ${{ matrix.node }}
51-
uses: actions/setup-node@v3
52-
with:
53-
node-version: ${{ matrix.node }}
54-
cache: npm
55-
56-
- name: Install latest npm
57-
run: npm install --global npm@latest
58-
59-
- name: Install dependencies
60-
run: npm ci
61-
62-
- name: Test
63-
run: npm test
17+
uses: stylelint/.github/.github/workflows/test.yml@main
18+
with:
19+
os: '["ubuntu-latest", "windows-latest", "macos-latest"]'

0 commit comments

Comments
 (0)