lifthrasiir / roadroller

Roadroller: Flattens Your JavaScript Demo
https://lifthrasiir.github.io/roadroller/
Other
331 stars 12 forks source link

Test with older versions of node.js #6

Closed lifthrasiir closed 3 years ago

lifthrasiir commented 3 years ago

Maybe I can use nvm or similar to test locally, or set up the CI instance to make sure that.

CodyJasonBennett commented 3 years ago

I think the native GitHub actions should do, although it's a matter of configuring how/what to test.

For example:

# .github/workflows/CI.yml
name: CI
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:  
  build-test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [12.x, 14.x, 16.x]

    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node-version }}

      - run: npm install
      - run: npm run build
      - run: npm run test
        env:
          CI: true