chore(api): Change location-country-region visualization modes #498
Workflow file for this run
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: API Tests | |
on: | |
push: | |
paths: | |
- 'api/**' | |
- 'shared/**' | |
- '.github/workflows/api-tests.yml' | |
- '/*' # include changes in root | |
- '!client/**' # exclude client folder | |
- '!infrastructure/**' # exclude infra folder | |
- 'package.json' | |
workflow_dispatch: | |
jobs: | |
api-tests-integration: | |
name: API Integration Tests | |
runs-on: ubuntu-22.04 | |
services: | |
database: | |
image: postgres:13 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USER: 4growth | |
POSTGRES_PASSWORD: 4growth | |
POSTGRES_DB: 4growth | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Node setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- uses: pnpm/action-setup@v4 | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-node_modules- | |
- name: Install dependencies | |
working-directory: . | |
run: pnpm install | |
- name: Lint code | |
working-directory: api | |
run: pnpm lint | |
- name: Run API tests | |
working-directory: api | |
run: pnpm test |