iconchore: Icon updates 27 May 2026, 10:47:16 #283
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI - Pull Request | |
| on: pull_request | |
| # Pull Request Runs on the same branch will be cancelled | |
| concurrency: | |
| group: ${{ github.head_ref }} | |
| cancel-in-progress: true | |
| env: | |
| FIGMA_ACCESS_TOKEN: ${{secrets.FIGMA_PERSONAL_ACCESS_TOKEN}} | |
| jobs: | |
| compile_js_modules: | |
| name: Compile JS Modules | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{github.head_ref}} | |
| - name: Install packages | |
| run: yarn install --immutable | |
| - name: Run tests | |
| run: yarn run test | |
| - name: Run tsc | |
| run: npx tsc | |
| check_generated_files: | |
| name: Check Generated Files Validity | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{github.head_ref}} | |
| - name: Check TypeScript validity (icon-types.ts) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: TypeScript check | |
| run: npx tsc outputs/web/icon-types.ts --noEmit | |
| continue-on-error: true | |
| - name: Comment if TypeScript check failed | |
| if: failure() && steps.TypeScript_check.outcome == 'failure' | |
| uses: mikedloss/create-update-comment@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| unique-identifier: "ts-check-failed" | |
| message: | | |
| :x: **TypeScript check failed for outputs/web/icon-types.ts** | |
| Please review the errors above and fix any issues. | |
| - name: Check Dart validity (icons.g.dart) | |
| uses: dart-lang/setup-dart@v1 | |
| continue-on-error: true | |
| - name: Dart analyze | |
| run: dart analyze outputs/flutter/icons.g.dart | |
| continue-on-error: true | |
| - name: Comment if Dart analyze failed | |
| if: failure() && steps.Dart_analyze.outcome == 'failure' | |
| uses: mikedloss/create-update-comment@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| unique-identifier: "dart-analyze-failed" | |
| message: | | |
| :x: **Dart analyze failed for outputs/flutter/icons.g.dart** | |
| Please review the errors above and fix any issues. | |
| release-comment: | |
| name: Release Comment | |
| runs-on: ubuntu-latest | |
| if: ${{ contains(github.event.pull_request.title, 'release zeta-icons')}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Get lastUpdated | |
| id: lastUpdated | |
| run: echo "lastUpdated=$(cat package.json | jq .lastUpdated)" >> $GITHUB_OUTPUT | |
| - name: Comment | |
| uses: mikedloss/create-update-comment@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| unique-identifier: "lastUpdated comment" | |
| message: | | |
| ### PR is ready to merge. | |
| Last updated: ${{ steps.lastUpdated.outputs.lastUpdated }} |