📦 bump lumen #238
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: Verify package | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| paths: ["lib/**", "assets/**", "scripts/**"] | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./lib/ | |
| strategy: | |
| matrix: | |
| node-version: [20] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.6.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "pnpm" | |
| cache-dependency-path: "./lib/pnpm-lock.yaml" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Knip | |
| run: pnpm knip | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Run Jest tests | |
| run: pnpm test | |
| - name: Check unused png files | |
| run: pnpm check:mapping | |
| - name: Verify index.json is committed and up to date | |
| run: | | |
| pnpm generate:index | |
| git diff --exit-code -- ../assets/index.json || { | |
| echo "::error file=assets/index.json::index.json is out of date. Run 'pnpm generate:index' locally and commit the changes."; | |
| exit 1; | |
| } | |
| - name: Verify icons mapping | |
| run: node ../scripts/verify-icons.js --concurrency 5 |