Skip to content

Commit debf4d2

Browse files
committed
Update CI config
* run lint once * rename action to CI
1 parent 9546a9a commit debf4d2

File tree

2 files changed

+27
-7
lines changed

2 files changed

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

33
on:
44
push:
@@ -11,7 +11,29 @@ env:
1111
FORCE_COLOR: 2
1212

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

@@ -38,10 +60,8 @@ jobs:
3860
- name: Build
3961
run: npm run build
4062

41-
- name: Run tests
42-
run: |
43-
echo "::add-matcher::.github/workflows/remark-lint-problem-matcher.json"
44-
npm test
63+
- name: Run unit tests
64+
run: npm run test:unit
4565

4666
- name: Run HTML validator
4767
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)