@75lb/ghci 中文文档教程

发布于 3年前 浏览 26 项目主页 更新于 3年前

查看npmnpm 模块下载”></a> 
  <a href=Gihub 回购依赖Gihub 包依赖Node.js CIjs- standard-style

@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>。

view on npmnpm module downloadsGihub repo dependentsGihub package dependentsNode.js CIjs-standard-style

@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>.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文