Skip to content

feat: zillow.properties.getBuilding — multifamily buildings (0.44.0) #171

feat: zillow.properties.getBuilding — multifamily buildings (0.44.0)

feat: zillow.properties.getBuilding — multifamily buildings (0.44.0) #171

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run linting
run: npm run lint
- name: Run type checking
run: npm run typecheck
- name: Run tests
run: npm test
- name: Run tests with coverage
if: matrix.node-version == '20.x'
run: npm run test:coverage
- name: Upload coverage reports
if: matrix.node-version == '20.x'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Check package exports
run: |
# Verify the built files exist
test -f dist/index.js
test -f dist/index.mjs
test -f dist/index.d.ts
echo "Build outputs verified"