@75lb/ghci 中文文档教程
@75lb/ghci
添加 Github CI 测试工作流。 此命令:
$ npm install -g @75lb/ghci
$ ghci master
...添加此工作流配置:
$ cat .github/workflows/node.js.yml
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 15, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
© 2021-22 Lloyd Brookes \<75pound@gmail.com>。
@75lb/ghci
Add a Github CI test workflow. This command:
$ npm install -g @75lb/ghci
$ ghci master
…adds this workflow config:
$ cat .github/workflows/node.js.yml
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 15, 16]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
© 2021-22 Lloyd Brookes \<75pound@gmail.com>.
更多