Add ContextDecorator
class
#19
This file contains 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: Continuous Integration | |
on: | |
push: | |
branches: | |
- 1.x | |
pull_request: | |
branches: | |
- 1.x | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node-version: | |
- 22.x | |
- 23.x | |
name: Continuous Integration | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ci-npm_${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
ci-npm_${{ matrix.node-version }}- | |
ci-npm- | |
- name: Install dependencies | |
run: npm install | |
- name: Run ESLint | |
run: npm run lint | |
- name: Run Prettier | |
run: npm run format:check | |
- name: Run Vitest | |
run: npm run test |