Skip to content

Commit 7d0a273

Browse files
committed
Update CI config
* run lint once * rename action to CI
1 parent 9239c9e commit 7d0a273

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed
Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: CI
22

33
on:
44
push:
@@ -8,7 +8,29 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
run:
11+
lint:
12+
name: Lint
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Clone repository
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: lts/*
23+
cache: npm
24+
25+
- name: Install npm dependencies
26+
run: npm ci
27+
28+
- name: Lint
29+
run: |
30+
echo "::add-matcher::.github/workflows/remark-lint-problem-matcher.json"
31+
npm run test:lint
32+
33+
test:
1234
name: Node on ${{ matrix.os }}
1335
runs-on: ${{ matrix.os }}
1436

@@ -36,9 +58,7 @@ jobs:
3658
run: npm run build
3759

3860
- name: Run tests
39-
run: |
40-
echo "::add-matcher::.github/workflows/remark-lint-problem-matcher.json"
41-
npm test
61+
run: npm run test:unit
4262

4363
- name: Run HTML validator
4464
run: npm run test:html

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [nodejs.org](https://nodejs.org/)
22

3-
[![Build Status](https://github.com/nodejs/nodejs.org/workflows/Tests/badge.svg)](https://github.com/nodejs/nodejs.org/actions?workflow=Tests)
3+
[![CI Status](https://github.com/nodejs/nodejs.org/actions/workflows/ci.yml/badge.svg)](https://github.com/nodejs/nodejs.org/actions/workflows/ci.yml?query=branch%3Amain)
44
[![MIT Licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
55
[![Crowdin](https://badges.crowdin.net/nodejs-website/localized.svg)](https://crowdin.com/project/nodejs-website)
66

0 commit comments

Comments
 (0)