initial work enabling metrics collection, open-telemetry integration #21
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: GHActions CI | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: | |
- ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
redis-version: [7.2.4] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: # keep in sync with package.json | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Check Typescript | |
run: | | |
pnpm typecheck | |
- name: Check Prettier | |
run: | | |
pnpm prettier | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
with: | |
redis-version: ${{ matrix.redis-version }} | |
- name: Run Tests | |
run: | | |
npm i -g pnpm && pnpm lint && pnpm test:ci |