You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ci.yml 647B

12345678910111213141516171819202122232425262728
  1. name: Simple CI
  2. on: [pull_request]
  3. jobs:
  4. run-ci:
  5. name: Build
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v4
  9. - uses: actions/setup-node@v4
  10. with:
  11. node-version-file: '.nvmrc'
  12. cache: 'npm'
  13. - name: Check Node / npm versions
  14. run: |
  15. node -v
  16. npm -v
  17. - run: npm install
  18. - run: npm pack
  19. - name: Check git status
  20. run: git status
  21. - name: Check git diff
  22. run: git diff
  23. - name: Check if the git repository is clean
  24. run: exit $( git status --porcelain --untracked-files=no | head -255 | wc -l )
  25. - run: npm run lint
  26. - run: npm run test