lint.yml 748 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Lint
  2. on:
  3. push:
  4. branches:
  5. - main
  6. tags-ignore:
  7. - '**'
  8. pull_request:
  9. concurrency:
  10. group: ${{ github.workflow }}-${{ github.ref }}
  11. cancel-in-progress: true
  12. jobs:
  13. lint:
  14. name: Lint
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v4
  18. - name: Setup node
  19. uses: actions/setup-node@v4
  20. with:
  21. node-version: 18
  22. cache: 'yarn'
  23. - name: Install
  24. uses: dtolnay/rust-toolchain@stable
  25. with:
  26. components: clippy, rustfmt
  27. - name: Install dependencies
  28. run: yarn install
  29. - name: ESLint
  30. run: yarn lint
  31. - name: Cargo fmt
  32. run: cargo fmt -- --check
  33. - name: Clippy
  34. run: cargo clippy