PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/depcheck/.github/workflows

Просмотр файла: nodejs.yml

name: ci

on: [pull_request]

jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-latest]
        node-version: [16.x, 18.x, 20.x]

    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v2

      - name: setup git
        if: matrix.os == 'windows-latest'
        run: |
          git config core.symlinks true
          git reset --hard

      - name: ${{ matrix.os }} / Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}

      - name: npm install, build, and test
        run: |
          npm ci
          npm run compile
          npm run component
          npm run depcheck
          npm run depcheck-json
          npm run lint
          npm run prettier-check
          npm run test-coverage
        env:
          CI: true

      - uses: codecov/codecov-action@v1
        if: matrix.os == 'ubuntu-latest' && matrix.node-version == '12.x'
        with:
          file: ./coverage/coverage.lcov
          name: codecov-umbrella
          fail_ci_if_error: false

Выполнить команду


Для локальной разработки. Не используйте в интернете!