Template node integration

    0

    9

    GitHub Actions

    Template for a GitHub action that check merge requests and run tests

    Shortcut: template.node.test_pull_request

    Filename pattern: .github/workflows/*.yml

    name: Node Continuous Integration
    on:
      pull_request:
        branches: [ main ]
    jobs:
      test_pull_request:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v2
          - uses: actions/setup-node@v1
            with:
              node-version: 14
          - run: npm ci
          - run: npm test
          - run: npm run build
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.