fluffynuts / newts

Bootstraps a TypeScript npm module project
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

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

Open fluffynuts opened 4 years ago

fluffynuts commented 4 years ago

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: