Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate to adonisjs 6 #24

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .bin/test.js

This file was deleted.

8 changes: 4 additions & 4 deletions .env
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
DB=pg
DB_NAME=lucid_slugify

MYSQL_HOST=mysql
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=virk
MYSQL_PASSWORD=password

MYSQL_LEGACY_HOST=mysql_legacy
MYSQL_LEGACY_HOST=localhost
MYSQL_LEGACY_PORT=3306
MYSQL_LEGACY_USER=virk
MYSQL_LEGACY_PASSWORD=password

PG_HOST=pg
PG_HOST=localhost
PG_PORT=5432
PG_USER=virk
PG_PASSWORD=password

MSSQL_SERVER=mssql
MSSQL_SERVER=localhost
MSSQL_USER=sa
MSSQL_PASSWORD=arandom&233password
70 changes: 0 additions & 70 deletions .github/COMMIT_CONVENTION.md

This file was deleted.

46 changes: 0 additions & 46 deletions .github/CONTRIBUTING.md

This file was deleted.

29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

28 changes: 0 additions & 28 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

114 changes: 110 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,118 @@ name: test
on:
- push
- pull_request

jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 21
- run: npm install
- run: npm run lint

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 21
- run: npm install
- run: npm run typecheck

test-postgres:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
postgres-version: [15]
services:
pg:
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_DB: lucid_slugify
POSTGRES_USER: virk
POSTGRES_PASSWORD: password
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run Postgres Tests
run: npm run test:pg

test-mysql:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 21]
services:
mysql:
image: mysql:8.0
env:
MYSQL_DATABASE: lucid_slugify
MYSQL_USER: virk
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
MYSQL_PORT: 3306
ports:
- '3306:3306'
- '3308:3306'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run Mysql Tests
run: npm run test:mysql

test-sqlite:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
lib: ['sqlite']
node-version: [20, 21]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run Sqlite Tests
run: npm run test:${{ matrix.lib }}

test-mssql:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 21]
services:
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
SA_PASSWORD: 'arandom&233password'
ACCEPT_EULA: 'Y'
ports:
- '1433:1433'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm install
- name: Run tests
run: npm run test
- name: Run Mssql Tests
run: npm run test:mssql
4 changes: 1 addition & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
HUSKY_GIT_PARAMS=$1 node ./node_modules/@adonisjs/mrm-preset/validate-commit/conventional/validate.js
npx --no -- commitlint --edit
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
21 changes: 0 additions & 21 deletions Dockerfile

This file was deleted.

Loading
Loading