2019-10-23 21:44:35 +08:00
|
|
|
name: Node CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-10-16 00:19:39 +08:00
|
|
|
node-version: [16.x]
|
2019-10-23 21:44:35 +08:00
|
|
|
|
|
|
|
steps:
|
2024-11-11 17:07:14 +08:00
|
|
|
- uses: actions/checkout@v4.2.2
|
2021-08-23 05:44:26 +08:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2024-11-11 17:06:16 +08:00
|
|
|
uses: actions/setup-node@v4.1.0
|
2021-08-23 05:44:26 +08:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2021-09-28 04:50:14 +08:00
|
|
|
|
2021-08-23 05:44:26 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
2021-09-28 04:50:14 +08:00
|
|
|
|
2021-08-23 05:44:26 +08:00
|
|
|
- name: Lint
|
2021-12-26 04:46:28 +08:00
|
|
|
run: npm run lint -- --quiet
|
2021-09-28 04:50:14 +08:00
|
|
|
|
2021-08-23 05:44:26 +08:00
|
|
|
- name: Build
|
|
|
|
run: npm run build
|
2021-09-28 04:50:14 +08:00
|
|
|
|
2021-08-23 05:44:26 +08:00
|
|
|
- name: Test
|
|
|
|
run: npm run test
|
2021-09-28 04:50:14 +08:00
|
|
|
|
2021-08-23 05:44:26 +08:00
|
|
|
- name: Readmes
|
|
|
|
run: npm run readmes
|