feat: createAdapter and createTable #49
Workflow file for this run
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
name: CI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pull-requests: write | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
build-test: | |
runs-on: ${{ matrix.os }} | |
permissions: | |
# Required to checkout the code | |
contents: read | |
# Required to put a comment into the pull-request | |
pull-requests: write | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: 📦 Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: 👀 Lint | |
run: pnpm lint | |
- name: 🚀 Build | |
run: pnpm build | |
- name: Start Docker Containers | |
run: | | |
docker compose up -d | |
# Wait for services to be ready (optional) | |
sleep 10 | |
- name: 🧪 Test with coverage | |
run: pnpm test:coverage | |
env: | |
MAILCRAB_HOST: localhost | |
MAILCRAB_SMTP_PORT: 1025 | |
MAILCRAB_UI_PORT: 1080 | |
- name: 👀 Typecheck | |
run: pnpm type-check | |
- name: 📝 Upload coverage | |
if: always() | |
uses: davelosert/vitest-coverage-report-action@v2 | |
- name: Stop Docker Containers | |
run: docker compose down |