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 680B

12345678910111213141516171819202122232425
  1. name: Simple CI
  2. on: [pull_request]
  3. jobs:
  4. run-ci:
  5. name: Build Frontend
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v2
  9. - uses: actions/setup-node@v1
  10. with:
  11. node-version: '16.x'
  12. - run: npm install
  13. - name: Check git status
  14. run: git status
  15. - name: Normalize lang files to ensure sorted
  16. run: npm run lang-sort
  17. - name: Check git diff
  18. run: git diff
  19. - name: Check if the git repository is clean
  20. run: exit $( git status --porcelain --untracked-files=no | head -255 | wc -l )
  21. - run: npm run lint
  22. - run: for file in lang/*.json; do npx --yes jsonlint -q $file || exit 1; done
  23. - run: make