Mirror of Awesome Self Hosted
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.

46 lines
1.1 KiB

3 years ago
  1. name: Awesome Lint
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - main
  7. jobs:
  8. awesome-lint:
  9. strategy:
  10. fail-fast: false
  11. matrix:
  12. files:
  13. - "readme.md"
  14. runs-on: ubuntu-latest
  15. steps:
  16. - name: "checkout repo"
  17. uses: actions/checkout@v2
  18. with:
  19. fetch-depth: 0
  20. - name: asdf_install
  21. uses: asdf-vm/actions/install@v1
  22. - name: "linting: ${{ matrix.files }}"
  23. run: npx -y awesome-lint ${{ matrix.files }}
  24. awesome-bot:
  25. strategy:
  26. fail-fast: false
  27. matrix:
  28. files:
  29. - "readme.md"
  30. runs-on: ubuntu-latest
  31. steps:
  32. - name: "checkout repo"
  33. uses: actions/checkout@v2.0.0
  34. with:
  35. fetch-depth: 0
  36. - name: "setup ruby"
  37. uses: ruby/setup-ruby@v1
  38. with:
  39. ruby-version: 3.0.1
  40. bundler-cache: true
  41. - name: "install awesome-bot"
  42. run: gem install awesome_bot
  43. - name: "linting: ${{ matrix.files }}"
  44. run: awesome_bot --allow-redirect ${{ matrix.files }}