Merge pull request #36 from rrd108/jules_wip_10506712769273927019 #77
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test-sqlite: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: npm i -g --force corepack@latest && corepack enable | |
| - name: Install dependencies | |
| run: npx nypm@latest i | |
| - name: Install sqlite3 | |
| run: npx nypm@latest i sqlite3 | |
| - name: Playground prepare | |
| run: npm run dev:prepare | |
| - name: Test | |
| run: npm run test:sqlite | |
| test-mysql: | |
| runs-on: ubuntu-latest | |
| services: | |
| mysql: | |
| image: mariadb:10.11 | |
| env: | |
| MARIADB_ROOT_PASSWORD: 123 | |
| MARIADB_DATABASE: test_db | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="mysqladmin ping -h 127.0.0.1 -u root -p123" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=3 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: npm i -g --force corepack@latest && corepack enable | |
| - name: Install dependencies | |
| run: npx nypm@latest i | |
| - name: Install mysql2 | |
| run: npx nypm@latest i mysql2 | |
| - name: Install mysql | |
| run: sudo apt-get update && sudo apt-get install -y mariadb-client | |
| - name: Playground prepare | |
| run: npm run dev:prepare | |
| - name: Install DB Clients | |
| run: sudo apt-get update && sudo apt-get install -y mariadb-client | |
| - name: Test | |
| run: npm run test:mysql | |
| env: | |
| DB_HOST: 127.0.0.1 | |
| test-postgresql: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:17 | |
| env: | |
| POSTGRES_PASSWORD: 123 | |
| POSTGRES_DB: test_db | |
| POSTGRES_USER: postgres | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd="pg_isready" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=3 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: npm i -g --force corepack@latest && corepack enable | |
| - name: Install dependencies | |
| run: npx nypm@latest i | |
| - name: Install pg | |
| run: npx nypm@latest i pg | |
| - name: Playground prepare | |
| run: npm run dev:prepare | |
| - name: Install DB Clients | |
| run: sudo apt-get update && sudo apt-get install -y postgresql-client | |
| - name: Test | |
| run: npm run test:postgresql |