Primarily because it's getting to be a pain in the backside to always consider pre Node.js 6 when wanting to use up-to-date dependencies.tags/v3.2.0
| @@ -3,12 +3,12 @@ name: Verify changes | |||||
| on: [push, pull_request] | on: [push, pull_request] | ||||
| jobs: | jobs: | ||||
| build: | |||||
| tests: | |||||
| runs-on: ubuntu-latest | runs-on: ubuntu-latest | ||||
| strategy: | strategy: | ||||
| matrix: | matrix: | ||||
| node-version: [0.10.x, 0.12.x, 4.x, 6.x, 8.x, 10.x, 12.x] | |||||
| node-version: [8.x, 10.x, 12.x] | |||||
| steps: | steps: | ||||
| - uses: actions/checkout@v1 | - uses: actions/checkout@v1 | ||||
| @@ -20,3 +20,21 @@ jobs: | |||||
| run: | | run: | | ||||
| npm install | npm install | ||||
| npm test | npm test | ||||
| tests-on-legacy: | |||||
| runs-on: ubuntu-latest | |||||
| strategy: | |||||
| matrix: | |||||
| node-version: [0.10.x, 0.12.x, 4.x, 6.x] | |||||
| steps: | |||||
| - uses: actions/checkout@v1 | |||||
| - name: Setup Node.js | |||||
| uses: actions/setup-node@v1 | |||||
| with: | |||||
| node-version: ${{ matrix.node-version }} | |||||
| - name: npm install and test | |||||
| run: | | |||||
| npm install mocha@3 chai@3 | |||||
| npm run test-unit | |||||
| @@ -1,8 +1,5 @@ | |||||
| language: node_js | language: node_js | ||||
| node_js: | node_js: | ||||
| - '0.10' | |||||
| - 0.12 | |||||
| - 4 | |||||
| - 6 | - 6 | ||||
| - 8 | - 8 | ||||
| - 10 | - 10 | ||||
| @@ -32,8 +32,9 @@ | |||||
| "npm": ">=1.4.0" | "npm": ">=1.4.0" | ||||
| }, | }, | ||||
| "scripts": { | "scripts": { | ||||
| "pretest": "eslint mustache.js bin/mustache test/**/*.js", | |||||
| "test": "mocha --reporter spec test/*-test.js", | |||||
| "test": "npm run test-lint && npm run test-unit", | |||||
| "test-lint": "eslint mustache.js bin/mustache test/**/*.js", | |||||
| "test-unit": "mocha --reporter spec test/*-test.js", | |||||
| "test-render": "mocha --reporter spec test/render-test", | "test-render": "mocha --reporter spec test/render-test", | ||||
| "pre-test-browser": "node test/create-browser-suite.js", | "pre-test-browser": "node test/create-browser-suite.js", | ||||
| "test-browser": "npm run pre-test-browser && zuul -- test/context-test.js test/parse-test.js test/scanner-test.js test/render-test-browser.js", | "test-browser": "npm run pre-test-browser && zuul -- test/context-test.js test/parse-test.js test/scanner-test.js test/render-test-browser.js", | ||||