9169256af40d4f6c700e096e49c0d1d9f5bde45e3efba5472ccf0907bf2b38bb7055b2413a7b3158d52f555456ce7209da7e447b57cac9f9feef3bd2b72073 789 B

1234567891011121314151617181920212223242526272829303132333435
  1. # GitHub Actions
  2. # https://help.github.com/en/articles/configuring-a-workflow
  3. name: Unit tests
  4. on: push
  5. jobs:
  6. spec:
  7. name: Unit test
  8. runs-on: ubuntu-20.04
  9. steps:
  10. - uses: actions/checkout@v3
  11. # install a specific version of Node using
  12. # https://github.com/actions/setup-node
  13. - name: Use Node.js v18
  14. uses: actions/setup-node@v3
  15. with:
  16. node-version: 18
  17. # just so we learn about available environment variables GitHub provides
  18. - name: Print env variables
  19. run: |
  20. npm i -g @bahmutov/print-env
  21. print-env GITHUB
  22. # Install dependencies
  23. - name: Dependencies
  24. run: |
  25. npm install
  26. # Run tests
  27. - name: Spec test
  28. run: |
  29. npm run test