validate-icons.yml 893 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Validate icons
  2. on: [pull_request]
  3. jobs:
  4. validate:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v4
  8. - name: Use Node.js 20
  9. uses: actions/setup-node@v3
  10. with:
  11. node-version: 20
  12. - uses: pnpm/action-setup@v3
  13. name: Install pnpm
  14. with:
  15. version: 8
  16. run_install: false
  17. - name: Get pnpm store directory
  18. shell: bash
  19. run: |
  20. echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
  21. - uses: actions/cache@v3
  22. name: Setup pnpm cache
  23. with:
  24. path: ${{ env.STORE_PATH }}
  25. key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
  26. restore-keys: |
  27. ${{ runner.os }}-pnpm-store-
  28. - name: Install dependencies
  29. run: pnpm install
  30. - name: Validate icons
  31. run: pnpm validate