Skip to content
This repository was archived by the owner on Jun 9, 2026. It is now read-only.
This repository was archived by the owner on Jun 9, 2026. It is now read-only.

should offer to set up build/test GitHub workflow #3

Description

@fluffynuts

Shouldn't be too hard -- if testing is enabled for the project, include a .github/workflows/ci.yaml with something like:

on: [ push, pull_request ]

jobs:
  main:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v2-beta
      with:
        node-version: '12'
    - name: Test
      run: |
        npm ci
        npm run build
        npm run lint
        npm test

notes:

  • perhaps the build / lint / test should be consolidated as a single npm script
  • node-version set to 12 for now, but perhaps it should track the version of node used by the person creating the project? At the very least, this would mean no need to re-visit this part of the setup periodically

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions