File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed
Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 1- name : Tests
1+ name : CI
22
33on :
44 push :
1111 FORCE_COLOR : 2
1212
1313jobs :
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
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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments