nodejs.yml 728 B

123456789101112131415161718192021222324252627
  1. name: Node CI
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. node-version: [0.10.0, 4.x, 6.x, 8.x, 10.x, 12.x]
  9. steps:
  10. - uses: actions/checkout@v1
  11. - name: Use Node.js ${{ matrix.node-version }}
  12. uses: actions/setup-node@v1
  13. with:
  14. node-version: ${{ matrix.node-version }}
  15. - name: npm install, build, and test
  16. run: |
  17. npm install
  18. mkdir -p test/keys
  19. openssl genrsa -out test/keys/ssl.key 2048
  20. openssl req -new -key test/keys/ssl.key -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -x509 -days 999 -out test/keys/ssl.cert
  21. npm run build --if-present
  22. npm test
  23. env:
  24. CI: true