chore: update role-chaining example in README #1276
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
| on: | |
| [pull_request] | |
| name: Run unit tests | |
| permissions: | |
| contents: read | |
| jobs: | |
| unit-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| name: Run unit tests | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 5 | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@v5 | |
| - name: "Setup node" | |
| uses: actions/[email protected] | |
| with: | |
| node-version: 20 | |
| - name: "Install dependencies" | |
| run: npm ci | |
| - name: "Run tests" | |
| run: npm run test --if-present | |
| lint: | |
| name: Ensure code standards | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: "Checkout repostiory" | |
| uses: actions/checkout@v5 | |
| - name: "Setup node" | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: "Install dependencies" | |
| uses: bahmutov/npm-install@v1 | |
| - name: "Lint code" | |
| run: npm run lint --if-present |