feat(han-communication): add the han-readability output style (#174) #331
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 | |
| # Lint and test the repo with the same npm-pinned tools contributors run | |
| # locally (prek + Prettier + ShellCheck for lint, Bats for tests). Everything is | |
| # installed by `npm ci` from the committed package-lock.json, so CI and local | |
| # use identical versions. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.3 | |
| - uses: actions/setup-node@v6.4.0 | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| - name: Cache prek hook environments | |
| uses: actions/cache@v5.0.5 | |
| with: | |
| path: ~/.cache/prek | |
| key: prek-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
| restore-keys: | | |
| prek-${{ runner.os }}- | |
| - run: npm ci | |
| - run: npm run lint | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.3 | |
| - uses: actions/setup-node@v6.4.0 | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| - run: npm ci | |
| - run: npm test |