Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| # Test against these versions of Node.js | |
| environment: | |
| matrix: | |
| - nodejs_version: "10" | |
| platform: | |
| - x64 | |
| # Install scripts (runs after repo cloning) | |
| install: | |
| # Get the latest stable version of Node.js | |
| - ps: Install-Product node $env:nodejs_version $env:platform | |
| # Clone submodules (mustache spec) | |
| - cmd: git submodule update --init --recursive | |
| # Install modules | |
| - cmd: npm ci | |
| # Post-install test scripts | |
| test_script: | |
| # Output useful info for debugging | |
| - cmd: node --version | |
| - cmd: npm --version | |
| # Run tests | |
| - cmd: npm run test | |
| # Don't actually build | |
| build: off | |
| on_failure: | |
| - cmd: 7z a coverage.zip coverage | |
| - cmd: appveyor PushArtifact coverage.zip | |
| # Set build version format here instead of in the admin panel | |
| version: "{build}" |